From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6468 invoked by alias); 8 May 2003 19:56:09 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6447 invoked by uid 48); 8 May 2003 19:56:08 -0000 Date: Thu, 08 May 2003 19:56:00 -0000 Message-ID: <20030508195608.6446.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sebor@roguewave.com From: giovannibajo@libero.it Reply-To: giovannibajo@libero.it, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sebor@roguewave.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/10690: bogus ambiguity on templates overloaded on return type X-SW-Source: 2003-05/txt/msg00642.txt.bz2 List-Id: Synopsis: bogus ambiguity on templates overloaded on return type State-Changed-From-To: open->analyzed State-Changed-By: bajo State-Changed-When: Thu May 8 19:56:08 2003 State-Changed-Why: Using __PRETTY_FUNCTION__, the code compiles correctly on both 3.3 and 3.4 (CVS 20030503). Thus, the bug is more like this: --------------------------------------- #include template void func(void) {} void foo(void) { typeid(func<10>); } --------------------------------------- pr10690.cpp: In function `void foo()': pr10690.cpp:8: error: insufficient contextual information to determine type I believe the code should compile (see also DR115, even if it does not take into account typeid() but only situations where the overload set must decay to function pointer). It works with the EDG frontend but not with MSVC7. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10690