This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65186] internal compiler error: in tsubst, at cp/pt.c:11738


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65186

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.8.3, 4.9.2, 5.0, 6.0
           Severity|minor                       |normal

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This seems to hit the same ICE, without template aliases:

template <typename C, C> struct integral_constant {};

template <typename T, template <typename U, U> class> struct Sort;  

template <template <typename U, U> class Comparator>  
struct Sort<int, Comparator>
{  
    template <int I> struct less_than:
        integral_constant<bool, Comparator<int, I>::value> {};
};

int main() {}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]