This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2008 15:42:50 -0000
- Subject: [Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error
- References: <bug-35405-7035@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from dodji at gcc dot gnu dot org 2008-08-13 15:42 -------
Created an attachment (id=16066)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16066&action=view)
first fix candidate
This patch is an obvious fix to the ICE.
Now the compiler reports the following (not nice) error:
crash79.C: In
instantiation of 'a<int>':
crash79.C:16:
instantiated from here
crash79.C:8:<
error: 'template<class> class C' is not a template
crash79.C:8:
error: '<type error>' is not a valid type for a template constant
parameter
crash79.C:8:
error: 'template<class> class C' is not a template
crash79.C:8:
error: '<type error>' is not a valid type for a template constant
parameter
We could try and fix this to make the compiler display a nicer error.
In the mean time, if this fix is okay to fix the ICE only, I could try to
submit to gcc-patches.
Comment anyone ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405