This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21601] Friend of template argument constructor


------- 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 &#8216;B<A>&#8217;: 
x.cc:14:   instantiated from here 
x.cc:5: error: invalid use of undefined type &#8216;class A&#8217; 
x.cc:14: error: forward declaration of &#8216;class A&#8217; 
 
  
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]