public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11613] New: attribute unused after label causes error with g++
@ 2003-07-21 10:00 jsaw at gmx dot net
  2003-07-21 14:27 ` [Bug c++/11613] " bangerth at dealii dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jsaw at gmx dot net @ 2003-07-21 10:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11613

           Summary: attribute unused after label causes error with g++
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsaw at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

The attribute "unused" after a jump label is not understood
by the C++ compiler.

The following simple test program compiles fine with gcc, 
while g++ fails with error:

int main() { 
unused_label: __attribute__((unused))
return 0;
}


Compiler versions tested: 2.95.3, 3.2.3, 3.3


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

end of thread, other threads:[~2004-02-24 17:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-21 10:00 [Bug c++/11613] New: attribute unused after label causes error with g++ jsaw at gmx dot net
2003-07-21 14:27 ` [Bug c++/11613] " bangerth at dealii dot org
2003-07-21 14:33 ` pinskia at physics dot uc dot edu
2003-07-21 15:01 ` bangerth at dealii dot org
2003-07-23 17:17 ` nathan at gcc dot gnu dot org
2003-07-23 17:23 ` nathan at gcc dot gnu dot org
2003-07-25 10:54 ` nathan at gcc dot gnu dot org
2004-02-24 17:04 ` msp at nortelnetworks dot com

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).