From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10633 invoked by alias); 4 Aug 2009 12:55:15 -0000 Received: (qmail 15657 invoked by uid 48); 4 Aug 2009 12:48:39 -0000 Date: Tue, 04 Aug 2009 12:55:00 -0000 Message-ID: <20090804124839.15656.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40942] GCC accepts code that Comeau and MSVC deems invalid. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jwakely dot gcc at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00427.txt.bz2 ------- Comment #1 from jwakely dot gcc at gmail dot com 2009-08-04 12:48 ------- Testcase can be reduced to: struct S { template S (T const *) { } template S (char const (&)[N]) { } }; int main() { S s1 ("test"); } GCC still accepts this while Comeau rejects it. -- jwakely dot gcc at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jwakely dot gcc at gmail dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40942