public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "etienne dot clement at autodesk dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/29219]  New: Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x.
Date: Mon, 25 Sep 2006 20:15:00 -0000	[thread overview]
Message-ID: <bug-29219-13301@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2006-09-25 20:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-25 20:15 etienne dot clement at autodesk dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29219-13301@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).