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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11/12/13 Regression]    |ICE in tree check: expected
                   |ICE in tree check: expected |enumeral_type, have
                   |enumeral_type, have         |record_type in tsubst_copy
                   |record_type in tsubst_copy  |since
                   |since                       |r11-5003-gd50310408f54e3
                   |r11-5003-gd50310408f54e3    |
   Target Milestone|10.5                        |---

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
But it's not a regression since it always ICEd when the feature required was
implemented.  GCC 10 rejects the code:

t.ii:6:9: error: expected nested-name-specifier before 'enum'
    6 |   using enum c;
      |         ^~~~
t.ii:9:44: error: 'd' is not a member of 'b'
    9 | template <int> class e { char g = (char)b::d; };
      |                                            ^

Reply via email to