Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
6 Views

template aliases bug

The following code compiles fine with clang and gcc (-std=c++14) but fails with icc 2016.

#include <type_traits>                                                           
#include <utility>                                                               
#include <tuple>                                                                 
                                                                                 
template<class Integer, Integer... Ix>                                           
using IntegerSequence = std::tuple<std::integral_constant<Integer, Ix>...>;      
                                                                                 
template<std::size_t... Indexes>                                                 
using IndexSequence = IntegerSequence<std::size_t, Indexes...>;                  
                                                                                 
template<std::size_t... Indexes>                                                 
int f(IndexSequence<Indexes...>) {                                               
  return 0;                                                                      
}                                                                                
                                                                                 
int main() {                                                                     
  f(IndexSequence<3,7,8>());                                                     
  return 0;                                                                      
}

 

0 Kudos
1 Reply
Highlighted
Employee
6 Views

Hi Ryan,
Thanks, I've filed this issue with the developers and will touch base with you as soon as I've an update accordingly.
_Kittur

0 Kudos