[Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 19 09:34:00 GMT 2019


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another (hopefully valid) testcase, accepted by trunk, r269511 and clang++, all
with -std=c++17, ICEs with r269512 and up.

struct A;
template <typename, template <typename> class> struct B;
template <template <typename> class T> struct B<int, T>;
template <class> struct C {
  template <class> int operator[] (int) const;
  template <class T> int operator[] (A) const;
};


More information about the Gcc-bugs mailing list