public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10133: public/protected member of template base class is not seen in derived template class.
@ 2003-03-18 19:16 Giovanni Bajo
  0 siblings, 0 replies; 3+ messages in thread
From: Giovanni Bajo @ 2003-03-18 19:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<carlo@alinoe.com>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>
Cc:  
Subject: Re: c++/10133: public/protected member of template base class is not seen in derived template class.
Date: Tue, 18 Mar 2003 20:10:59 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=10133
 
 Not a bug. Base template classes are not in the default lookup. 3.4 is right
 about this, other versions are wrong. Usual "workaround" is using
 this->member.
 
 Giovanni Bajo
 


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

* Re: c++/10133: public/protected member of template base class is not seen in derived template class.
@ 2003-03-19 14:50 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2003-03-19 14:50 UTC (permalink / raw)
  To: carlo, gcc-bugs, gcc-prs, nobody

Synopsis: public/protected member of template base class is not seen in derived template class.

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Wed Mar 19 14:50:36 2003
State-Changed-Why:
    Not a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10133


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

* c++/10133: public/protected member of template base class is not seen in derived template class.
@ 2003-03-18 12:36 carlo
  0 siblings, 0 replies; 3+ messages in thread
From: carlo @ 2003-03-18 12:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10133
>Category:       c++
>Synopsis:       public/protected member of template base class is not seen in derived template class.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 18 12:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Carlo Wood
>Release:        gcc version 3.4 20030313 (experimental)
>Organization:
>Environment:

>Description:
The following is a regression, it compiles with all
versions up till and including 3.3 (20030313).
I am not 100% sure it *should* compile.

> cat test.cc
template <int instance>
  struct B {
    int i;
  };

template <int instance>
  struct A : public B <instance> {
    void f() { int* p = &i; }
  };


> g++-cvs-3.4 -c test.cc
test.cc: In member function `void A<instance>::f()':
test.cc:8: error: `i' has not been declared
>How-To-Repeat:

>Fix:
Using '&B<instance>::i' instead of '&i' works.
Using '&this->i' also works.

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


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

end of thread, other threads:[~2003-03-19 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-18 19:16 c++/10133: public/protected member of template base class is not seen in derived template class Giovanni Bajo
  -- strict thread matches above, loose matches on Subject: below --
2003-03-19 14:50 lerdsuwa
2003-03-18 12:36 carlo

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