public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16650] New: class-disambigued name lookup
@ 2004-07-20 22:32 boris at kolpackov dot net
  2004-07-20 22:37 ` [Bug c++/16650] [3.3 regression] " bangerth at dealii dot org
  2004-07-20 22:51 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: boris at kolpackov dot net @ 2004-07-20 22:32 UTC (permalink / raw)
  To: gcc-bugs

$ cat >test.cxx
namespace n
{
  struct s
  {
  };
  
  void
  s ();
  
  void
  f ()
  {
    class s s_; // (*)
  }
}

void 
f ()
{
  class n::s s_;
}

$ g++ --version
g++ (GCC) 3.3.4 (Debian 1:3.3.4-4)

$ g++ -c test.cxx
test.cxx: In function `void f()':
test.cxx:20: error: `n' does not have a class or union named `s'
test.cxx:20: error: aggregate `s s_' has incomplete type and cannot be defined

Note that there is no error at (*). This code compiles fine with gcc 3.4.

-- 
           Summary: class-disambigued name lookup
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: boris at kolpackov dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-gnu-linuc
  GCC host triplet: i686-pc-gnu-linuc
GCC target triplet: i686-pc-gnu-linuc


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


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

* [Bug c++/16650] [3.3 regression] class-disambigued name lookup
  2004-07-20 22:32 [Bug c++/16650] New: class-disambigued name lookup boris at kolpackov dot net
@ 2004-07-20 22:37 ` bangerth at dealii dot org
  2004-07-20 22:51 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2004-07-20 22:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-07-20 22:37 -------
Confirmed, this is a regression in 3.3.x (and 3.2 for that matter) against 
2.95.3. However, it is fixed in 3.4.x and mainline. I'll keep it open 
in case someone wants to backport a patch, but don't hold your 
breath for that to happen. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
      Known to fail|                            |3.2.3 3.3.4
      Known to work|                            |2.95.3 3.4.0 3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-20 22:37:52
               date|                            |
            Summary|class-disambigued name      |[3.3 regression] class-
                   |lookup                      |disambigued name lookup
   Target Milestone|---                         |3.3.5


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


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

* [Bug c++/16650] [3.3 regression] class-disambigued name lookup
  2004-07-20 22:32 [Bug c++/16650] New: class-disambigued name lookup boris at kolpackov dot net
  2004-07-20 22:37 ` [Bug c++/16650] [3.3 regression] " bangerth at dealii dot org
@ 2004-07-20 22:51 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-20 22:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-20 22:51 -------
>From Phil's regression hunter: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-
trunk (#160).  And IIRC my history correctly the time is when the new C++ was merged in so it will 
most likely not fixed on the 3.3 branch.

Well I was right this not be fixed as this is a dup of bug 14858 which is closed as fixed for 3.4.0 by the 
release manager of 3.3.x.

*** This bug has been marked as a duplicate of 14858 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2004-07-20 22:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-20 22:32 [Bug c++/16650] New: class-disambigued name lookup boris at kolpackov dot net
2004-07-20 22:37 ` [Bug c++/16650] [3.3 regression] " bangerth at dealii dot org
2004-07-20 22:51 ` pinskia 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).