This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21601] Friend of template argument constructor
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2005 16:41:48 -0000
- Subject: [Bug c++/21601] Friend of template argument constructor
- References: <20050516013329.21601.charles.gretton@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2005-05-17 16:41 -------
This is already fixed in gcc4.0 which says
g/x> /home/bangerth/bin/gcc-4*/bin/c++ -c x.cc
x.cc:5: error: ISO C++ forbids declaration of ‘T’ with no type
x.cc: In instantiation of ‘B<A>’:
x.cc:14: instantiated from here
x.cc:5: error: invalid use of undefined type ‘class A’
x.cc:14: error: forward declaration of ‘class A’
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |ice-on-invalid-code
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21601