[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#216209: marked as done ([PR 13517] confusing error message for reference on a constant)



Your message dated Sun, 22 May 2005 16:03:49 +0200
with message-id <87acmnichm.fsf@debian.org>
and subject line Bug#216209: confusing error message for reference on a constant
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 10:17:53 +0000
>From thimo@debian.org Fri Oct 17 05:17:53 2003
Return-path: <thimo@debian.org>
Received: from mout1.freenet.de [194.97.50.132] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AARg8-0006OT-00; Fri, 17 Oct 2003 05:17:52 -0500
Received: from [194.97.55.148] (helo=mx5.freenet.de)
	by mout1.freenet.de with asmtp (Exim 4.24)
	id 1AARg7-00075U-Tb
	for submit@bugs.debian.org; Fri, 17 Oct 2003 12:17:51 +0200
Received: from p508431b8.dip.t-dialin.net ([80.132.49.184] helo=torg)
	by mx5.freenet.de with asmtp (ID aylee@freenet.de) (Exim 4.24 #1)
	id 1AARg7-0003ju-Ia
	for submit@bugs.debian.org; Fri, 17 Oct 2003 12:17:51 +0200
Received: from riff.netz ([192.168.99.3] ident=mail)
	by torg with esmtp (Exim 3.35 #1 (Debian))
	id 1AARg5-0007P7-00
	for <submit@bugs.debian.org>; Fri, 17 Oct 2003 12:17:49 +0200
Received: from thimo by riff.netz with local (Exim 3.36 #1 (Debian))
	id 1AARg4-00070C-00
	for <submit@bugs.debian.org>; Fri, 17 Oct 2003 12:17:48 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Thimo Neubauer <thimo@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: g++-3.3: template-method not found depending on type
X-Mailer: reportbug 2.34
Date: Fri, 17 Oct 2003 12:17:48 +0200
Message-Id: <E1AARg4-00070C-00@riff.netz>
Sender: Thimo Neubauer <thimo@debian.org>
Delivered-To: submit@bugs.debian.org
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 program consists of two classes, both with a
parametrized method. Depending on the parameter type g++ the
compilation fails or not...

-- snip --
class E1 {
public:
  template <class T>
  void print(T bla) { };
};

class E2 {
public:
  // same as above but with a reference
  template <class T>
  void print(T& bla) { };
};

void foo1() {
  E1 e;

  // works
  e.print("hurz");

  // works too
  e.print(23);
};

void foo2() {
  E2 e;

  // works
  e.print("hurz");

  // fails!
  e.print(23);
};

int main () {  
};
-- snip --

riff /tmp> g++ -Wall temptest1.cc
temptest1.cc: In function `void foo2()':
temptest1.cc:33: error: no matching function for call to
`E2::print(int)'
temptest1.cc:13: error: candidates are: void E2::print(T&) [with T =
int]
Exitcode 1
riff /tmp> g++ --version
g++ (GCC) 3.3.2 20031005 (Debian prerelease)
[...]

This behavoir is at least inconsistent and I believe it to be
buggy. However, the Intel Compiler fails on the same line, so maybe
it's a special case in the C++-specs?!

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: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

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 216209-done) by bugs.debian.org; 22 May 2005 14:04:21 +0000
>From falk@debian.org Sun May 22 07:04:21 2005
Return-path: <falk@debian.org>
Received: from smtp06.web.de [217.72.192.224] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DZr41-0002ct-00; Sun, 22 May 2005 07:04:21 -0700
Received: from [213.23.67.203] (helo=juist)
	by smtp06.web.de with asmtp (TLSv1:DES-CBC3-SHA:168)
	(WEB.DE 4.105 #291)
	id 1DZr3W-0006Ho-00
	for 216209-done@bugs.debian.org; Sun, 22 May 2005 16:03:50 +0200
Received: from falk by juist with local (Exim 4.50)
	id 1DZr3V-0001Px-GL
	for 216209-done@bugs.debian.org; Sun, 22 May 2005 16:03:49 +0200
To: 216209-done@bugs.debian.org
Subject: Bug#216209: confusing error message for reference on a constant
From: Falk Hueffner <falk@debian.org>
X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ
 wY77I-M)xHIx:2f56g%/`SOw"Dx%4Xq0&f\Tj~>|QR|vGlU}TBYhiG(K:2<T^
Date: Sun, 22 May 2005 16:03:49 +0200
Message-ID: <87acmnichm.fsf@debian.org>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (cilantro, linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: falk@debian.org
X-Sender: falk.hueffner@web.de
Delivered-To: 216209-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	RCVD_IN_DSBL autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Hi,

upstream says the error message is correct (or at least cannot be
improved reasonably), so closing.

-- 
	Falk



Reply to: