From mboxrd@z Thu Jan 1 00:00:00 1970 From: reichelt@igpm.rwth-aachen.de To: gcc-gnats@gcc.gnu.org Subject: c++/4249: Trouble with static templated member functions Date: Thu, 06 Sep 2001 08:56:00 -0000 Message-id: <20010906154642.20771.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00124.html List-Id: >Number: 4249 >Category: c++ >Synopsis: Trouble with static templated member functions >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Sep 06 08:56:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Volker Reichelt >Release: gcc 3.0.2 (prerelease snapshot 20010903), gcc 3.0.1, gcc 2.95.3 >Organization: >Environment: mips-sgi-irix6.5, i686-pc-linux-gnu >Description: The following (legal) code snippet crashes various versions of g++: struct A { void f(); template static void g(); }; struct B {}; void h( void (*)() ); void A::f() { h(&g); } with the following error message: Bug.cpp: In member function `void A::f()': Bug.cpp:13: Internal compiler error in c_expand_expr, at c-common.c:4121 Please submit a full bug report, [...] >How-To-Repeat: g++ -c Bug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: