From owner-freebsd-current@FreeBSD.ORG Fri Jul 18 01:33:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2545A37B404; Fri, 18 Jul 2003 01:33:06 -0700 (PDT) Received: from meitner.wh.uni-dortmund.de (meitner.wh.Uni-Dortmund.DE [129.217.129.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id C58A843F3F; Fri, 18 Jul 2003 01:33:04 -0700 (PDT) (envelope-from michaelnottebrock@gmx.net) Received: from lofi.dyndns.org (pc2-105.intern.meitner [10.3.12.105]) by meitner.wh.uni-dortmund.de (Postfix) with ESMTP id D8F4C16768B; Fri, 18 Jul 2003 10:33:03 +0200 (CEST) Received: from kiste.my.domain (kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.12.9/8.12.9) with ESMTP id h6I8Wxus059591 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 18 Jul 2003 10:33:01 +0200 (CEST) (envelope-from michaelnottebrock@gmx.net) From: Michael Nottebrock To: Mikhail Teterin , Alexander Kabaev , Daniel Eischen , Kris Kennaway Date: Fri, 18 Jul 2003 10:32:51 +0200 User-Agent: KMail/1.5.2 References: <1058366903.81198.18.camel@skeeve> <20030717162554.680475cc.ak03@gte.com> <200307171650.15405@misha-mx.virtual-estates.net> In-Reply-To: <200307171650.15405@misha-mx.virtual-estates.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_7C7F/SYedgjHKOC"; charset="koi8-u" Content-Transfer-Encoding: 7bit Message-Id: <200307181032.59474.michaelnottebrock@gmx.net> X-Virus-Scanned: by amavisd-new cc: freebsd-current@freebsd.org cc: kde@freebsd.org Subject: Re: gcc-3.3 issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 08:33:06 -0000 --Boundary-02=_7C7F/SYedgjHKOC Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Thursday 17 July 2003 22:50, Mikhail Teterin wrote: > Here is how to reproduce the problem, Michael is talking about. Simply > try to build the kdelibs3 (or kdegraphic3, or kdenetwork3) port. I've tried to come up with a less obscure testcase: #include #include using namespace std; int main () { string astring=3D"Hello World"; cout << astring << endl; } Now, if I compile this on 5.1-RELEASE with=20 c++ -Wnon-virtual-dtor -Wno-long-long -Wall -pedantic -W -Wpointer-arith=20 =2DWmissing-prototypes -Wwrite-strings -DNDEBUG -DNO_DEBUG -O -pipe=20 =2Dmcpu=3Dpentiumpro -fno-check-new -L/usr/local/lib -I/usr/local/include=20 =2DI/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -o helloworld=20 helloworld.cc I get a plethora of warnings: In file included from /usr/include/g++/memory:55, from /usr/include/g++/string:48, from helloworld.cc:1: /usr/include/g++/bits/stl_alloc.h:979: warning: ISO C++ forbids the use of ` extern' on explicit instantiations /usr/include/g++/bits/stl_alloc.h:980: warning: ISO C++ forbids the use of ` extern' on explicit instantiations /usr/include/g++/bits/stl_alloc.h:981: warning: ISO C++ forbids the use of ` extern' on explicit instantiations /usr/include/g++/bits/stl_alloc.h:981: warning: ISO C++ forbids the use of ` extern' on explicit instantiations /usr/include/g++/bits/stl_alloc.h:981: warning: ISO C++ forbids the use of ` extern' on explicit instantiations [and many, many more] but it will compile. If I omit -pedantic, none of these warnings occur. The= =20 thing is, in -CURRENT with the new gcc, all these warnings for some reason= =20 become errors. The other thing is, if I try this with with a ports-compiled= =20 g++32 on 4-STABLE, I don't get warnings at all, no matter if -pedantic is=20 specified or not. So here's the questions for the experts: =2D Why errors instead of warnings? =2D Why do gcc's own bits seem to not conform to some kind of standard that= it=20 tries to adhere to in 5-CURRENT but not in 4-STABLE? =2D Who's to blame? =2D-=20 Michael Nottebrock \ KDE on FreeBSD \ ,ww =20 \ --- \ ,wWWCybaWW_)=20 \ http://freebsd.kde.org \ `WSheepW' free \ II II node --Boundary-02=_7C7F/SYedgjHKOC Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA/F7C7Xhc68WspdLARAkpgAKCkJYNAwtLDk/7J8rhhyqPEqSWlZgCfYyHy U+NBy6G1IRP6sW74a3QqvAM= =JeB5 -----END PGP SIGNATURE----- --Boundary-02=_7C7F/SYedgjHKOC--