From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23149 invoked by alias); 4 Apr 2009 19:45:55 -0000 Received: (qmail 22722 invoked by uid 48); 4 Apr 2009 19:45:44 -0000 Date: Sat, 04 Apr 2009 19:45:00 -0000 Subject: [Bug c++/39639] New: no diagnostic for ill-formed pack expansion X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sebor at roguewave 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-04/txt/msg00322.txt.bz2 gcc 4.3.2 and a recent pull of 4.4 accept the following (presumably) ill-formed program: $ cat t.C && g++ -v && g++ -std=c++0x t.C && ./a.out #include template struct S: S<...Types>, S<...Types...>, S<...> { static const char* f () { return __PRETTY_FUNCTION__; } }; int main () { std::puts (S::f ()); } Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/sebor/gcc/trunk/configure --prefix=/build/sebor/bin/gcc-4.4.0 --enable-languages=c,c++ --with-mpfr=/usr/local/mpfr-2.3.1 Thread model: posix gcc version 4.4.0 20081105 (experimental) (GCC) static const char* S::f() [with Types = void] -- Summary: no diagnostic for ill-formed pack expansion Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39639