This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
test4.cxx: ==================================================== #include <cmath> template<typename Fct, Fct fct>struct tWrapper{}; tWrapper<typeof(&std::sin),&std::sin> w; ==================================================== $ c++ test4.cxx test4.cxx:3: Internal compiler error in walk_tree, at tree-inline.c:1315 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. Release: unknown Environment: Cygwin, c++ (GCC) 3.2 20020927 (prerelease) Linux, c++ (GCC) 3.2.1 How-To-Repeat: See above code
Fix: http://gcc.gnu.org/ml/gcc-patches/2003-01/msg01620.html
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed. A regression w.r.t. 2.95 introduced first in 3.0. Still present in 3.2.2pre, 3.3pre and 3.4 CVS
From: "Zeisel Helmut VAI.ATI 3" <Helmut.Zeisel@vai.at> To: <gcc-gnats@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <helmut.zeisel@liwest.at>, <gcc-bugs@gcc.gnu.org> Cc: Subject: Re: c++/9328: [3.2/3.3/3.4 regression] ICE with templates and namespace std members Date: Fri, 17 Jan 2003 11:14:15 +0100 In the meanwhile I found that this ICE has nothing to do with templates = and namespaces, but is a problem of typeof(X) when the type of X cannot be uniquely = derived. The same ICE occurs in the following code: double f(double); float f(float); void h(typeof(f) g) {} Helmut =20
Responsible-Changed-From-To: unassigned->mmitchel Responsible-Changed-Why: Working on a fix.
From: mmitchel@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: c++/9328 Date: 23 Jan 2003 00:17:32 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: mmitchel@gcc.gnu.org 2003-01-23 00:17:32 Modified files: gcc/cp : ChangeLog error.c semantics.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/ext: typeof3.C Log message: PR c++/9328 * g++.dg/ext/typeof3.C: New test. PR c++/9328 * error.c (dump_decl): For an OVERLOAD, just print the name of the function; it doesn't make sense to try to print its type. * semantics.c (finish_typeof): Issue errors about invalid uses. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3172&r2=1.3173 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&r1=1.196&r2=1.197 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.294&r2=1.295 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2362&r2=1.2363 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/typeof3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
State-Changed-From-To: analyzed->closed State-Changed-Why: Fixed in GCC 3.2, GCC 3.3, GCC 3.4.
From: mmitchel@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: c++/9328 Date: 23 Jan 2003 00:30:29 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_2-branch Changes by: mmitchel@gcc.gnu.org 2003-01-23 00:30:28 Modified files: gcc/cp : ChangeLog error.c semantics.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/ext: typeof3.C Log message: PR c++/9328 * g++.dg/ext/typeof3.C: New test. PR c++/9328 * error.c (dump_decl): For an OVERLOAD, just print the name of the function; it doesn't make sense to try to print its type. * semantics.c (finish_typeof): Issue errors about invalid uses. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.2685.2.114.2.58&r2=1.2685.2.114.2.59 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.170.2.3.2.3&r2=1.170.2.3.2.4 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.252.2.6.4.1&r2=1.252.2.6.4.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.1672.2.166.2.80&r2=1.1672.2.166.2.81 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/typeof3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=NONE&r2=1.1.2.1
From: mmitchel@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: c++/9328 Date: 23 Jan 2003 00:31:55 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: mmitchel@gcc.gnu.org 2003-01-23 00:31:55 Modified files: gcc/cp : ChangeLog error.c semantics.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/ext: typeof3.C Log message: PR c++/9328 * g++.dg/ext/typeof3.C: New test. PR c++/9328 * error.c (dump_decl): For an OVERLOAD, just print the name of the function; it doesn't make sense to try to print its type. * semantics.c (finish_typeof): Issue errors about invalid uses. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.21&r2=1.3076.2.22 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.192&r2=1.192.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.282&r2=1.282.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.22&r2=1.2261.2.23 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/typeof3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.4.1