From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31198 invoked by alias); 2 May 2003 19:06:01 -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 31166 invoked by uid 71); 2 May 2003 19:06:01 -0000 Date: Fri, 02 May 2003 19:06:00 -0000 Message-ID: <20030502190601.31165.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/10079: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate" Reply-To: "Giovanni Bajo" X-SW-Source: 2003-05/txt/msg00150.txt.bz2 List-Id: The following reply was made to PR c++/10079; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/10079: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate" Date: Fri, 2 May 2003 20:58:00 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10079 Very weird. I can't compress it more than this: ---------------------------------------------------------- template struct Foo {}; template struct Bar {}; template struct true_t { enum { value = true }; }; template Foo<(true_t::value && true_t::value)> func(T t, U u) {} template void func(Bar, Bar ) {} int main() { Bar v; func(v, v); } ---------------------------------------------------------- pr10079.cpp: In function `int main()': pr10079.cpp:30: internal compiler error: Segmentation fault Please submit a full bug report, In my wild guess, the segfault happens while trying to format the error message about the ambiguity of the call, which requires printing the declaration of the first func<> (that is quite complex). Reconfirmed on everything (2.95 -> 3.4 CVS 20030430). Giovanni Bajo