[Bug c++/22172] [3.4/4.0/4.1 Regression] Internal compiler error, seg fault.

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 26 08:10:00 GMT 2005


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-09-26 08:09 -------
I don't think that this is a proper fix, since the following IMHO valid
code snippet is rejected:

====================================================================
namespace N { template<int> struct A { operator int() const; }; }

template<typename> void foo()
{
    +typename N::A<0>();
}
====================================================================


-- 


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



More information about the Gcc-bugs mailing list