This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81429] maybe_unused attribute triggers syntax error when used on first argument to a constructor
- From: "jeff.benshetler at stackpath dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jul 2017 14:50:58 +0000
- Subject: [Bug c++/81429] maybe_unused attribute triggers syntax error when used on first argument to a constructor
- Auto-submitted: auto-generated
- References: <bug-81429-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429
--- Comment #1 from Jeff Benshetler <jeff.benshetler at stackpath dot com> ---
Created attachment 41747
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41747&action=edit
Source test case that triggers the bug; corresponds to .ii file
Added in an abundance of caution.
No header files are used.
The first constructor has [[maybe_used]] on the first constructor parameter and
it triggers the bug.
The second constructor uses [[maybe_unused]] on the second constructor
parameter and it is fine.