[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From nathan at gcc dot gnu dot org 2005-05-31 13:19 --- I think this is from my binfo changes -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-04-23 04:18:57 |2005-05-31 13:19:56 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165
[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-31 17:43 --- Subject: Bug 21165 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-31 17:43:26 Modified files: gcc/cp : ChangeLog init.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: init5.C Log message: cp: PR c++/21165 * init.c (integral_constant_value): Check the type of the initializer, not the decl. testsuite: PR c++/21165 * g++.dg/template/init5.C: New. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gccr1=1.4766r2=1.4767 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gccr1=1.419r2=1.420 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gccr1=1.5566r2=1.5567 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/init5.C.diff?cvsroot=gccr1=NONEr2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165
[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From nathan at gcc dot gnu dot org 2005-05-31 18:01 --- 2005-05-31 Nathan Sidwell [EMAIL PROTECTED] PR c++/21165 * init.c (integral_constant_value): Check the type of the initializer, not the decl. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165
[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-31 18:01 --- Subject: Bug 21165 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-05-31 18:01:02 Modified files: gcc/cp : ChangeLog init.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: init5.C Log message: cp: PR c++/21165 * init.c (integral_constant_value): Check the type of the initializer, not the decl. testsuite: PR c++/21165 * g++.dg/template/init5.C: New. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.4648.2.50r2=1.4648.2.51 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.412.2.4r2=1.412.2.5 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5084.2.211r2=1.5084.2.212 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/init5.C.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.2.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165
[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-03 21:44 --- *** Bug 21373 has been marked as a duplicate of this bug. *** -- What|Removed |Added CC||pkoning at equallogic dot ||com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165
[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From reichelt at gcc dot gnu dot org 2005-04-26 15:10 --- Reduced testcase that ICE's with checking enabled: === templatetypename T bool foo() { const int i = T(); return i0; }; === -- What|Removed |Added CC||reichelt at gcc dot gnu dot ||org GCC build triplet|sparc-sun-solaris2.9| GCC host triplet|sparc-sun-solaris2.9| GCC target triplet|sparc-sun-solaris2.9| Keywords||monitored http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165
[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-23 04:18 --- Confirmed, it ICEs with checking enabled: t.cc: In member function 'typename T::BA C template-parameter-1-1, T::foo(typename T::BA)': t.cc:23: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have typename_type in lookup_conversions, at cp/search.c:2407 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Keywords||ice-checking, ice-on-valid- ||code, rejects-valid Last reconfirmed|-00-00 00:00:00 |2005-04-23 04:18:57 date|| Summary|bogus error on a user- |[4.0/4.1 Regression] bogus |defined conversion in a |error on a user-defined |template|conversion in a template Target Milestone|--- |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21165