public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9447: using Base<T>::member does not work
@ 2003-01-27  9:26 Paolo Carlini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Carlini @ 2003-01-27  9:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9447; it has been noted by GNATS.

From: Paolo Carlini <pcarlini@unitus.it>
To: gcc-gnats@gcc.gnu.org,  rguenth@tat.physik.uni-tuebingen.de, 
 gcc-bugs@gcc.gnu.org,  nobody@gcc.gnu.org,  gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: c++/9447: using Base<T>::member does not work
Date: Mon, 27 Jan 2003 10:11:55 +0100

 Seems a known issue (hopefully someone (Jason?) will deal with it soon!):
 	
    http://gcc.gnu.org/ml/gcc-patches/2003-01/msg01560.html
 
 Paolo.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9447
 


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

* c++/9447: using Base<T>::member does not work
@ 2003-01-27  8:56 rguenth
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth @ 2003-01-27  8:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9447
>Category:       c++
>Synopsis:       using Base<T>::member does not work
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 27 08:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Richard Guenther
>Release:        [3.4 regression] g++-3.4 (GCC) 3.4 20030124 (experimental)
>Organization:
>Environment:
ix86-linux
>Description:
In the following testcase, member i of Foo is not brought to scope by the using declaration, instead g++ reports:

bellatrix:~/src/tests$ g++-3.4 -c using3.cpp -Wall
using3.cpp: In member function `void Bar<T>::foo()':
using3.cpp:11: error: `i' has not been declared

this works with both 3.2 and 3.3 (in fact, they dont care if I omit the using declaration, too, but in whole this is a regression).

template <class T>
struct Foo {
        int i;
};

template <class T>
struct Bar : public Foo<T> {
        using Foo<T>::i;
        void foo()
        {
                i = 0;
        }
};

int main()
{
        Bar<int> bar;
        bar.foo();
        return 0;
}
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-27  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27  9:26 c++/9447: using Base<T>::member does not work Paolo Carlini
  -- strict thread matches above, loose matches on Subject: below --
2003-01-27  8:56 rguenth

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