[Bug c++/54706] New: -fsyntax-only suppresses a compilation error
dave at boostpro dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 25 14:49:00 GMT 2012
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<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());
More information about the Gcc-bugs
mailing list