Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

icc bug with nested parameter packs

$
0
0

The below code compiles fine with gcc and clang but gives this error with icc 2016:

main.cpp(11): error: parameter pack "IX2" was referenced but not expanded

    KA(const A<IX2>&... ax) {

               ^

 

compilation aborted for main.cpp (code 2)

template<int I>
struct A {};

template<int... IX>
struct KA {
  template<int... IX2>
  KA(const A<IX2>&... ax) {
  }
};

int main() {
  return 0;
}   

 


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>