https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96477
Bug ID: 96477
Summary: GCC accepts attribute 'const' as an attribute pack
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: haoxintu at gmail dot com
Target Milestone: ---
Hi, all.
Following code might be a invalid code? GCC accepts it while Clang or ICC
rejects it.
Code:
[[gnu::const ... ]] int foo (){ return 0;}
Every version from GCC-6.1 onwards behaves the same.
Thanks,
Haoxin