https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89511
--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue May 7 16:26:38 2019 New Revision: 270972 URL: https://gcc.gnu.org/viewcvs?rev=270972&root=gcc&view=rev Log: PR c++/89511 - ICE with using-declaration and unscoped enumerator. * parser.c (cp_parser_using_declaration): For an unscoped enum only use its context if it's not a function declaration. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/using-enum-3.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/parser.c