https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118374
Bug ID: 118374 Summary: Missing fixit for underlying enum type Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Blocks: 118371 Target Milestone: --- This is from https://bugs.gentoo.org/938230. ``` enum Flags : uint8_t {}; ``` We emit: ``` <source>:1:12: error: found ':' in nested-name-specifier, expected '::' 1 | enum Flags : uint8_t {}; | ^ | :: <source>:1:6: error: 'Flags' has not been declared 1 | enum Flags : uint8_t {}; | ^~~~~ <source>:1:22: error: expected unqualified-id before '{' token 1 | enum Flags : uint8_t {}; | ^ Compiler returned: 1 ``` .. which is confusing for folks if uint8_t used to come in via a header. Upstreams don't usually struggle with this but sometimes packagers do who haven't seen it before. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118371 [Bug 118371] [meta-bug] tracker bug for UX issues affecting porting to GCC 15