From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 11 Apr 2005 14:41:20 +0400 From: "Dmitry V. Levin" To: ALT Linux Sisyphus mailing list Subject: Re: [sisyphus] GCC 3.3 vs GCC 3.4 Message-ID: <20050411104120.GC29586@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Sisyphus mailing list References: <200504111204.14017.serpiph@nikiet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Md/poaVZ8hnGTzuv" Content-Disposition: inline In-Reply-To: <200504111204.14017.serpiph@nikiet.ru> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 10:41:22 -0000 Archived-At: List-Archive: --Md/poaVZ8hnGTzuv Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Apr 11, 2005 at 12:04:13PM +0400, Epiphanov Sergei wrote: > =E5=D3=D4=D8 =D0=D2=CF=C7=D2=C1=CD=CD=C1 test.cpp, =D0=D2=C9=CC=CF=D6=C5= =CE=CE=C1=D1 =D7 =C1=D4=D4=C1=DE=C5. >=20 > =F3=D4=CF=D1=D4 GCC 3.3 =C9 GCC 3.4. =E4=C1=C0 =CB=CF=CD=C1=CE=C4=D9: >=20 > $ GCC_VERSION=3D3.3 g++ -o test test.cpp > $ ./test > Res1: 7 > Res2: 5 > Res3: 0 > Res4: 1 > $ GCC_VERSION=3D3.4 g++ -o test test.cpp > test.cpp: In function `int main(int, char**)': > test.cpp:30: error: no matching function for call to `Test::Test(Test)' > test.cpp:7: note: candidates are: Test::Test(Test&) > test.cpp:6: Test::Test(int) > $ >=20 > =E7=CC=C0=CB =D7 =CB=CF=CD=D0=C9=CC=D1=D4=CF=D2=C5 3.4? =F0=D2=CF=C7=D2= =C1=CD=CD=C1 - =DC=D4=CF =D7=D9=D6=C9=CD=CB=C1 =D2=C1=C2=CF=D4=D9 =CB=CC=C1= =D3=D3=C1 QMap =C9=DA Qt. $ g++ --version |fgrep g++ i586-alt-linux-g++ (GCC) 3.4.3 20050314 (ALT Linux, build 3.4.3-alt6) $ g++ -c test.cpp test.cpp:14: error: `Test' does not name a type test.cpp: In function `int ins(const int&, const Test&)': test.cpp:18: error: `ff' undeclared (first use this function) test.cpp:18: error: (Each undeclared identifier is reported only once for e= ach function it appears in.) test.cpp: In function `int main(int, char**)': test.cpp:28: error: `ff' undeclared (first use this function) test.cpp:29: error: no matching function for call to `Test::Test(Test)' test.cpp:7: note: candidates are: Test::Test(Test&) test.cpp:6: note: Test::Test(int) 1. =EF=D0=D2=C5=C4=C5=CC=C5=CE=C9=C5 =CB=CC=C1=D3=D3=C1 =C4=CF=CC=D6=CE=CF = =DA=C1=D7=C5=D2=DB=C1=D4=D8=D3=D1 =D3=C9=CD=D7=CF=CC=CF=CD ";". 2. =F3=CF=C7=CC=C1=D3=CE=CF /usr/share/doc/gcc-3.4/NEWS.html, "G++ is now much closer to full conformance to the ISO/ANSI C++ standard. This means, among other things, that a lot of invalid constructs which used to be accepted in previous versions will now be rejected. It is very likely that existing C++ code will need to be fixed." =F7 =C4=C1=CE=CE=CF=CD =D3=CC=D5=DE=C1=C5 =D2=C5=DE=D8 =C9=C4=A3=D4 =CF =D4= =CF=CD, =DE=D4=CF =CB=CF=CE=D3=D4=D2=D5=CB=D4=CF=D2 "Test::Test(Test &t)" =D3=CC=C5=C4=D5=C5=D4 =DA=C1=CD=C5=CE=C9=D4=D8 =CB=CF=CE=D3=D4=D2=D5=CB=D4= =CF=D2=CF=CD "Test::Test(const Test &t)". --=20 ldv --Md/poaVZ8hnGTzuv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD4DBQFCWlRQ9viEa8HiNCkRAknIAJY81+En9Pzt92faa4kCU7CISEmVAJ0YgZIE t21K4EpbsCQTPRZMbNqy6g== =dujK -----END PGP SIGNATURE----- --Md/poaVZ8hnGTzuv--