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: unassig...@gcc.gnu.org

        ReportedBy: d...@boostpro.com





Compile the following with -std=c++11 both with and without -fsyntax-only and

note the difference:



template<class...Fs> struct pair;



template<class F1, class...Fs>

struct pair<F1, Fs...> : F1, Fs...

{

    typedef pair type;

};



template<class...Fs>

typename pair<Fs...>::type make(Fs...x)

{ return pair<Fs...>(x...); }



struct X {}; struct Y{};



auto a = make(X(),Y());

Reply via email to