[Bug c++/17161] failure to diagnose an ill-formed instantiation on a local type

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Feb 22 10:25:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-22 01:42 -------
This has now been fixed:

t.cc: In function 'int main()':
t.cc:10: error: 'main()::E' uses local type 'main()::E'
t.cc:10: error:   trying to instantiate 'template<class T> void S::foo(T)'

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17161



More information about the Gcc-bugs mailing list