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

            Bug ID: 124045
           Summary: Splice-specifier for a type on a namespace-scope
                    variable declaration erroneously requires typename
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.revzin at gmail dot com
  Target Milestone: ---

This program fails on gcc trunk (-freflection):

[: ^^int :] a = 42;

gcc accepts if you add a preceding `typename`, but I think this scenario is a
type-only context (https://eel.is/c++draft/temp.res.general#4.4.1).

Reply via email to