The three lines of code in the header of the attached report-file, trigger an internal compiler error. For my purposes, I can replace static_cast with dynamic_cast, which does _not_ trigger the error. Release: gcc version 3.3 20020803 (all 3.x versions as far as i've seen) How-To-Repeat: compile the code I put in the report-file
Fix: http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01014.html
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed. A regression from 2.95.x
Responsible-Changed-From-To: unassigned->mmitchel Responsible-Changed-Why: Working on a fix.
State-Changed-From-To: analyzed->closed State-Changed-Why: Fixed in GCC 3.2.1.
From: mmitchel@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: c++/7478 Date: 17 Oct 2002 00:15:39 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_2-branch Changes by: mmitchel@gcc.gnu.org 2002-10-16 17:15:39 Modified files: gcc/cp : ChangeLog cvt.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: ref1.C Log message: PR c++/7478 * cvt.c (convert_to_reference): Allow references as the incoming type. PR c++/7478 * g++.dg/template/ref1.C: New test. 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.22&r2=1.2685.2.114.2.23 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.112.2.4&r2=1.112.2.4.2.1 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.30&r2=1.1672.2.166.2.31 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ref1.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++/7478 Date: 17 Oct 2002 00:17:59 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: mmitchel@gcc.gnu.org 2002-10-16 17:17:59 Modified files: gcc/cp : ChangeLog cvt.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: ref1.C Log message: PR c++/7478 * cvt.c (convert_to_reference): Allow references as the incoming type. PR c++/7478 * g++.dg/template/ref1.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3003&r2=1.3004 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&r1=1.124&r2=1.125 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2148&r2=1.2149 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ref1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2