public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9765: typedefs in base class passed as a template patameter not resolved
@ 2003-02-19 23:26 antoxa
  0 siblings, 0 replies; 2+ messages in thread
From: antoxa @ 2003-02-19 23:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9765
>Category:       c++
>Synopsis:       typedefs in base class passed as a template patameter not resolved
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 19 23:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Anton Povarov (i.e. myself)
>Release:        g++ (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
>Organization:
>Environment:

>Description:
consider the following code
test_typedef.cc
-------
struct Test {
	typedef int my_type;
};

template <class T> struct A : public T {
	A() {
		my_type a; // it's line 7
	}
};
----------
Compiler says:
test_typedef.cc: In constructor `A<T>::A()':
test_typedef.cc:7: parse error before `;' token
>How-To-Repeat:
just compile with g++ no additional options needed
>Fix:
:)
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/9765: typedefs in base class passed as a template patameter not resolved
@ 2003-02-20  0:17 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-20  0:17 UTC (permalink / raw)
  To: antoxa, gcc-bugs, gcc-prs, nobody

Synopsis: typedefs in base class passed as a template patameter not resolved

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Feb 20 00:17:11 2003
State-Changed-Why:
    Not a bug. C++ requires you to write
      typename T::my_type a;
    instead.

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


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

end of thread, other threads:[~2003-02-20  0:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-19 23:26 c++/9765: typedefs in base class passed as a template patameter not resolved antoxa
2003-02-20  0:17 bangerth

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