From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15638 invoked by alias); 25 Sep 2012 14:49:18 -0000 Received: (qmail 15247 invoked by uid 48); 25 Sep 2012 14:48:53 -0000 From: "dave at boostpro dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54706] New: -fsyntax-only suppresses a compilation error Date: Tue, 25 Sep 2012 14:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave at boostpro dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-09/txt/msg02077.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706 Bug #: 54706 Summary: -fsyntax-only suppresses a compilation error Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: dave@boostpro.com Compile the following with -std=c++11 both with and without -fsyntax-only and note the difference: template struct pair; template struct pair : F1, Fs... { typedef pair type; }; template typename pair::type make(Fs...x) { return pair(x...); } struct X {}; struct Y{}; auto a = make(X(),Y());