This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15317] New: __attribute__ unused in first parameter of constructor gives error
- From: "mb at apissoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 14:14:54 -0000
- Subject: [Bug c++/15317] New: __attribute__ unused in first parameter of constructor gives error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If the first parameter of a constructor is marked as unused i always get the error:
x25.cpp:26: error: expected unqualified-id before "const"
x25.cpp:26: error: expected `)' before "const"
x25.cpp:26: error: expected `,' or `;' before "const
where the line is
x25.cpp:26: CommonX25::CommonX25(UNUSED const char *lName, UNUSED const char
*rName, UNUSED const char *source, UNUSED const char *dest)
Michael
--
Summary: __attribute__ unused in first parameter of constructor
gives error
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mb at apissoft dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15317