public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15317] New: __attribute__ unused in first parameter of constructor gives error
@ 2004-05-06 14:14 mb at apissoft dot com
  2004-05-06 14:29 ` [Bug c++/15317] " bangerth at dealii dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: mb at apissoft dot com @ 2004-05-06 14:14 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-05-24  2:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 14:14 [Bug c++/15317] New: __attribute__ unused in first parameter of constructor gives error mb at apissoft dot com
2004-05-06 14:29 ` [Bug c++/15317] " bangerth at dealii dot org
2004-05-06 14:33 ` pinskia at gcc dot gnu dot org
2004-05-06 14:36 ` mb at apissoft dot com
2004-05-06 14:43 ` [Bug c++/15317] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-05-06 14:44 ` pinskia at gcc dot gnu dot org
2004-05-24  2:31 ` mmitchel at gcc dot gnu dot org
2004-05-25  0:41 ` cvs-commit at gcc dot gnu dot org
2004-05-25  0:42 ` cvs-commit at gcc dot gnu dot org
2004-05-25  0:50 ` cvs-commit at gcc dot gnu dot org
2004-05-25  1:04 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).