public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33516]  New: [4.0/4.1/4.2/4.3 Regression] Rejects typedef qualified name-lookup
@ 2007-09-21  8:50 rguenth at gcc dot gnu dot org
  2007-09-21  8:56 ` [Bug c++/33516] " rguenth at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-09-21  8:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

struct foo_bar;

typedef foo_bar bar;

struct foo_bar {
         typedef int     baz;
         bar::baz   ii;   
};

t.C:7: error: ‘baz’ in class ‘bar’ does not name a type

or as originally reported:

struct foo_bar;

namespace foo {
         typedef foo_bar bar;
};

struct foo_bar {
         typedef int     baz;
         foo::bar::baz   ii;
};

t.C:9: error: ‘baz’ in class ‘foo::bar’ does not name a type

moving the declaration of ii out of foo_bar, the code is accepted:

struct foo_bar;

typedef foo_bar bar;

struct foo_bar {
         typedef int     baz;
};

bar::baz   ii;


EDG happily accepts the code in strict-ansi mode.


-- 
           Summary: [4.0/4.1/4.2/4.3 Regression] Rejects typedef qualified
                    name-lookup
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-03-30 22:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21  8:50 [Bug c++/33516] New: [4.0/4.1/4.2/4.3 Regression] Rejects typedef qualified name-lookup rguenth at gcc dot gnu dot org
2007-09-21  8:56 ` [Bug c++/33516] " rguenth at gcc dot gnu dot org
2007-09-22  4:14 ` bangerth at dealii dot org
2007-09-22  8:00 ` rguenth at gcc dot gnu dot org
2007-09-22  8:01 ` rguenth at gcc dot gnu dot org
2007-09-26 19:08 ` [Bug c++/33516] [4.1/4.2/4.3 " pinskia at gcc dot gnu dot org
2007-09-28  4:13 ` mmitchel at gcc dot gnu dot org
2007-10-31 10:25 ` jakub at gcc dot gnu dot org
2007-11-02 21:37 ` jakub at gcc dot gnu dot org
2007-11-02 21:40 ` [Bug c++/33516] [4.1/4.2 " jakub at gcc dot gnu dot org
2008-07-04 22:18 ` [Bug c++/33516] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 22:26 ` 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).