public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29219] New: Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x.
@ 2006-09-25 20:15 etienne dot clement at autodesk dot com
2006-09-25 20:19 ` [Bug c++/29219] " etienne dot clement at autodesk dot com
2006-09-25 21:11 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: etienne dot clement at autodesk dot com @ 2006-09-25 20:15 UTC (permalink / raw)
To: gcc-bugs
If you compile the attached code using g++ 4.0.x using the following command:
> g++ -v -save-temps -O3 -c bug.cpp
and look at the list of symbols in the bug.o file using the following command:
> nm bug.o
You will see that g++ generates a symbol for
'PxlMonoLimit<(PxlFormat)0>::limit'. IMHO, there is no reason to generate such
a symbol. g++ 3.4.x do not generate one.
Thank you,
Etienne Clement
--
Summary: Template instantiation problem - Different behavior
between gcc 4.0.x and gcc 3.4.x.
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: etienne dot clement at autodesk dot com
GCC build triplet: powerpc-apple-darwin8
GCC host triplet: i686-apple-darwin8
GCC target triplet: i686-apple-darwin8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29219
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/29219] Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x.
2006-09-25 20:15 [Bug c++/29219] New: Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x etienne dot clement at autodesk dot com
@ 2006-09-25 20:19 ` etienne dot clement at autodesk dot com
2006-09-25 21:11 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: etienne dot clement at autodesk dot com @ 2006-09-25 20:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from etienne dot clement at autodesk dot com 2006-09-25 20:19 -------
Created an attachment (id=12325)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12325&action=view)
Program causing the problem.
1- Compile using the following command:
> g++ -v -save-temps -O3 -c bug.cpp
Use the following command to see that a symbol is generated for
'PxlMonoLimit<(PxlFormat)0>::limit'.
> nm bug.o
2- Compile using the following command:
> g++ -v -save-temps -O3 -DWORK -c bug.cpp
Use the following command to see that no symbol for
'PxlMonoLimit<(PxlFormat)0>::limit' is generated.
> nm bug.o
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29219
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/29219] Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x.
2006-09-25 20:15 [Bug c++/29219] New: Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x etienne dot clement at autodesk dot com
2006-09-25 20:19 ` [Bug c++/29219] " etienne dot clement at autodesk dot com
@ 2006-09-25 21:11 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-25 21:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-25 21:11 -------
This is not a bug.
THis is a dup of bug 20547.
*** This bug has been marked as a duplicate of 20547 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29219
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-25 21:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-25 20:15 [Bug c++/29219] New: Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x etienne dot clement at autodesk dot com
2006-09-25 20:19 ` [Bug c++/29219] " etienne dot clement at autodesk dot com
2006-09-25 21:11 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).