[Bug c++/14738] New: internal compiler error, this code should not compile at all

val at digiways dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 26 00:04:00 GMT 2004


This cases an internal compiler error:
===============
struct A { void foo() {} };
template<class T> void foo(T& t) {}
int main()
{
	void (A::*x)() = &A::foo;
	A* a = new A;
	foo(a->*x);
}
===============

-- 
           Summary: internal compiler error, this code should not compile at
                    all
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: val at digiways dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: MinGW GCC 3.3.3, WinXP
  GCC host triplet: MinGW GCC 3.3.3, WinXP
GCC target triplet: MinGW GCC 3.3.3, WinXP


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



More information about the Gcc-bugs mailing list