FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 12-30-2008, 12:18 AM
"reichelt at gcc dot gnu dot org"
 
Default ICE in some (probably mal-formed) template code

------- Comment #2 from reichelt at gcc dot gnu dot org 2008-12-30 01:18 -------
To make things short: The bug is a duplicate of PR24791.

> This code (for better or worse) appeared to have built with 4.0.1. By adding
>the "class" stuff in the template specialization the static member was actually
>instantiated.

The "class stuff" is invalid. As mentioned in PR24791, GCC 4.0.0 -4.0.2 did not
crash on the code. All other releases before GCC 4.3.0 did.

> With just <> no instantiation occurred.

Because this is just a declaration and not a definition for the static member.
You need to add an initializer to make it a definition.
Then this should work as expected.


*** This bug has been marked as a duplicate of 24791 ***


--

reichelt at gcc dot gnu dot org changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37970

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 11:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org