[Bug c++/68679] [5/6 Regression] gcc-5.2.1 ICE in C++11 anon union of structs with template fns, OK in gcc <= 4.9.3
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 7 17:36:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68679
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
typedef struct {
struct {
unsigned d[4];
template<typename T>
unsigned operator[] (T i) const { return d[i]; }
} c;
} A;
The ICE is because TYPENAME_DECL appears among the methods.
More information about the Gcc-bugs
mailing list