From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20732 invoked by alias); 26 Oct 2004 13:30:31 -0000 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 Received: (qmail 20705 invoked by uid 48); 26 Oct 2004 13:30:29 -0000 Date: Tue, 26 Oct 2004 13:30:00 -0000 From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20041026133019.18161.bangerth@dealii.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/18161] New: [4.0 regression] typeof(1==1) is now int instead of bool X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg03185.txt.bz2 List-Id: For this code ----------------- template struct X { X(){} }; template struct X<>; ----------------- I would expect an instantiation of X, and indeed got it up to 3.4. However, since 4.0 we get X: g/x> /home/bangerth/bin/gcc-3.4*/bin/c++ -c x.cc ; nm -C x.o 00000000 W X::X() 00000000 W X::X() g/x> /home/bangerth/bin/gcc-4*/bin/c++ -c x.cc ; nm -C x.o 00000000 W X::X() 00000000 W X::X() This is somehow odd, since for a related piece of code ------------------- template struct X {}; void foo(X) {} ------------------- there is no regression: g/x> /home/bangerth/bin/gcc-3.4*/bin/c++ -c y.cc ; nm -C y.o 00000000 T foo(X) g/x> /home/bangerth/bin/gcc-4*/bin/c++ -c y.cc ; nm -C y.o 00000000 T foo(X) W. -- Summary: [4.0 regression] typeof(1==1) is now int instead of bool Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18161