public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26573]  New: [4.0/4.1/4.2 regression] Duplicate message for static member in local class
@ 2006-03-06  3:25 reichelt at gcc dot gnu dot org
  2006-03-06 13:03 ` [Bug c++/26573] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-06  3:25 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet

==================================
void foo()
{
  struct A { static int i; };
}
==================================

triggers a duplicate error message since GCC 3.1:

  bug.cc: In function 'void foo()':
  bug.cc:3: error: local class 'struct foo()::A' shall not have static data
member 'int foo()::A::i'
  bug.cc:3: error: field 'foo()::A::i' in local class cannot be static

The first error message was probably added back then because the second
message isn't issued if foo is a template function.


-- 
           Summary: [4.0/4.1/4.2 regression] Duplicate message for static
                    member in local class
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-07-04 15:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-06  3:25 [Bug c++/26573] New: [4.0/4.1/4.2 regression] Duplicate message for static member in local class reichelt at gcc dot gnu dot org
2006-03-06 13:03 ` [Bug c++/26573] " pinskia at gcc dot gnu dot org
2006-06-04 18:01 ` mmitchel at gcc dot gnu dot org
2006-08-26 17:01 ` lmillward at gcc dot gnu dot org
2006-08-26 22:46 ` patchapp at dberlin dot org
2006-08-27 15:22 ` lmillward at gcc dot gnu dot org
2006-08-27 15:22 ` [Bug c++/26573] [4.0/4.1 " lmillward at gcc dot gnu dot org
2007-02-03 16:22 ` gdr at gcc dot gnu dot org
2007-02-07 22:53 ` pinskia at gcc dot gnu dot org
2007-02-14  9:09 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:20 ` [Bug c++/26573] [4.1 " jsm28 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).