https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93299
Bug ID: 93299 Summary: [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:15779 Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- [forwarded from https://bugs.debian.org/949024] seen with gcc-9 branch 20200110 and trunk: $ cat foo.ii template <typename> struct a { enum { b }; }; class c; template <int> class __attribute__((aligned((a<c>::b)))) d {}; class : d<0> { $ g++ -c -std=gnu++14 foo.ii foo.ii: In instantiation of 'class d<0>': foo.ii:6:9: required from here foo.ii:5:58: internal compiler error: in tsubst_copy, at cp/pt.c:15779 5 | template <int> class __attribute__((aligned((a<c>::b)))) d {}; | ^ 0x7f3dbc75bbba __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate.