Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Programming ➜ General ➜ Templates and warning switches

Templates and warning switches

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #15 on Wed 07 Sep 2005 06:56 AM (UTC)
Message
Interesting. I assumed (more out of hope than anything else) that you had an older version of gcc. I tried it on 4.0.1 and can confirm getting the same error, with the exact same code I posted. I tried putting the default: below the case: statements, but no luck.

It very well could be a bug. When I remove the template, it generates no error. Template support causes headaches and it wouldn't surprise me if there were an error, somewhere... Chances are that if "someone" ( :-) ) goes looking on their bug list, this might already be there.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #16 on Wed 07 Sep 2005 11:47 AM (UTC)
Message
Heh, I have no problem going over their bug list, and submitting the case if need be. You have a much shorter testcase to illustrate the problem than I do :) This would technically fall under a regression since it worked in previous versions of the compiler.
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #17 on Mon 19 Sep 2005 02:39 AM (UTC)
Message
In the event someone more knowledgable than I cares to have a look, I submitted a bug to gcc about this issue: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23959
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


53,447 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.