[Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
adrian.wielgosik at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Aug 22 09:40:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list