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++/15317] New: __attribute__ unused in first parameter of constructor gives error


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


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