Your message dated Mon, 17 Nov 2003 22:17:57 +0100 with message-id <[EMAIL PROTECTED]> and subject line Not a bug... has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 17 Oct 2003 12:53:13 +0000 >From [EMAIL PROTECTED] Fri Oct 17 07:50:21 2003 Return-path: <[EMAIL PROTECTED]> Received: from mout1.freenet.de [194.97.50.132] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1AAU3h-0004UV-00; Fri, 17 Oct 2003 07:50:21 -0500 Received: from [194.97.55.148] (helo=mx5.freenet.de) by mout1.freenet.de with asmtp (Exim 4.24) id 1AAU3g-0001m0-Jx for [EMAIL PROTECTED]; Fri, 17 Oct 2003 14:50:20 +0200 Received: from p508431b8.dip.t-dialin.net ([80.132.49.184] helo=torg) by mx5.freenet.de with asmtp (ID [EMAIL PROTECTED]) (Exim 4.24 #1) id 1AAU3g-0003Rr-Ah for [EMAIL PROTECTED]; Fri, 17 Oct 2003 14:50:20 +0200 Received: from riff.netz ([192.168.99.3] ident=mail) by torg with esmtp (Exim 3.35 #1 (Debian)) id 1AAU3e-0007rb-00 for <[EMAIL PROTECTED]>; Fri, 17 Oct 2003 14:50:18 +0200 Received: from thimo by riff.netz with local (Exim 3.36 #1 (Debian)) id 1AAU3d-00073a-00 for <[EMAIL PROTECTED]>; Fri, 17 Oct 2003 14:50:17 +0200 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thimo Neubauer <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: g++-3.3: template function triggers syntax error X-Mailer: reportbug 2.34 Date: Fri, 17 Oct 2003 14:50:17 +0200 Message-Id: <[EMAIL PROTECTED]> Sender: Thimo Neubauer <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_01,HAS_PACKAGE version=2.53-bugs.debian.org_2003_10_13 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_13 (1.174.2.15-2003-03-30-exp) Package: g++-3.3 Version: 1:3.3.2-0pre5.0.1 Severity: normal Tags: sid The following code shows that g++ reports a syntax error if the method-call is inside a template-function but not if it's inside a normal function: -- snip -- #include <iostream> template <int dim> class Entity { public: template <class T> void print(T& bla) { std::cout << bla;}; template <int i> int test() { return i; } int other() { return 1; } }; void foo1() { Entity<1> e; // everything works e.other(); e.print("test"); e.test<1>(); }; template <int dim> void foo2() { Entity<dim> e; // works like above e.other(); e.print("test"); // fails with syntax error e.test<1>(); }; int main () { }; -- snip -- riff /tmp> g++ -Wall temptest2.cc temptest2.cc: In function `void foo2()': temptest2.cc:33: error: syntax error before `)' token The Intel compiler processes the code without any error (only warnings because he doesn't like the extra semicolons). Cheers Thimo -- System Information: Debian Release: testing/unstable Architecture: alpha Kernel: Linux riff 2.4.22riff #1 Mo Sep 29 22:54:24 CEST 2003 alpha Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] Versions of packages g++-3.3 depends on: ii gcc-3.3 1:3.3.2-0pre5.0.1 The GNU C compiler ii gcc-3.3-base 1:3.3.2-0pre5.0.1 The GNU Compiler Collection (base ii libc6.1 2.3.2-8 GNU C Library: Shared libraries an ii libstdc++5-3.3-dev 1:3.3.2-0pre5.0.1 The GNU Standard C++ Library v3 (d -- no debconf information --------------------------------------- Received: (at 216234-done) by bugs.debian.org; 17 Nov 2003 21:18:05 +0000 >From [EMAIL PROTECTED] Mon Nov 17 15:18:04 2003 Return-path: <[EMAIL PROTECTED]> Received: from mout0.freenet.de [194.97.50.131] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1ALql2-0002WA-00; Mon, 17 Nov 2003 15:18:04 -0600 Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout0.freenet.de with asmtp (Exim 4.24) id 1ALql1-00062k-Rh for [EMAIL PROTECTED]; Mon, 17 Nov 2003 22:18:03 +0100 Received: from pd958e189.dip.t-dialin.net ([217.88.225.137] helo=torg) by mx0.freenet.de with asmtp (ID [EMAIL PROTECTED]) (Exim 4.24 #2) id 1ALql1-000490-Hy for [EMAIL PROTECTED]; Mon, 17 Nov 2003 22:18:03 +0100 Received: from riff.netz ([192.168.99.3] helo=riff ident=mail) by torg with esmtp (Exim 3.35 #1 (Debian)) id 1ALqkx-0008Ua-00 for <[EMAIL PROTECTED]>; Mon, 17 Nov 2003 22:17:59 +0100 Received: from thimo by riff with local (Exim 3.36 #1 (Debian)) id 1ALqkv-0000IS-00 for <[EMAIL PROTECTED]>; Mon, 17 Nov 2003 22:17:57 +0100 Date: Mon, 17 Nov 2003 22:17:57 +0100 From: Thimo Neubauer <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Not a bug... Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline User-Agent: Mutt/1.5.4i Sender: Thimo Neubauer <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=0.0 required=4.0 tests=none version=2.53-bugs.debian.org_2003_11_15 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15 (1.174.2.15-2003-03-30-exp) --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, after asking on gcc-help I got the correct hint to use the "template"-keyword. Closing the bug. Cheers Thimo --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/uTsFHas8RNomMhgRAnkqAJoDpDEnm/iuy2iPygZwwdByqEwm+wCeJ7r9 b2qovRDe+Hb4zD+v3KHDSJo= =iptG -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--