This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration


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

            Bug ID: 67318
           Summary: [6 regression] Parsing error when using abbreviated
                    integral type names in template parameter pack
                    declaration
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: adrian.wielgosik at gmail dot com
  Target Milestone: ---

The following code:

template<short...>
struct MyStruct;

int main(){}

Results in an error:

main.cpp:16:15: error: expected â>â before â...â token
 template<short...>
               ^

Happens for: short, long, long long, unsigned, signed, unsigned short...
Does not happen for: all the above with "int" appended, int, char, bool.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]