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

            Bug ID: 100456
           Summary: [11 regression] Obsolete Template parameter Causes
                    Compile Error
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominik.stras...@onespin-solutions.com
  Target Milestone: ---

For the attached Source Code, I get
t.cpp:4:21: error: expected unqualified-id before ')' token
    4 |         Template<T>() {}
      |                     ^
in C++-20 Mode.
The error location seems to be off, too.

G++ 10.x, and clang 11/12 compile this fine.

g++ -std=c++20 t.cpp

Reply via email to