From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25379 invoked by alias); 25 Sep 2006 20:15:36 -0000 Received: (qmail 25350 invoked by uid 48); 25 Sep 2006 20:15:28 -0000 Date: Mon, 25 Sep 2006 20:15:00 -0000 Subject: [Bug c++/29219] New: Template instantiation problem - Different behavior between gcc 4.0.x and gcc 3.4.x. X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "etienne dot clement at autodesk dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg02370.txt.bz2 List-Id: 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