public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54706] New: -fsyntax-only suppresses a compilation error
@ 2012-09-25 14:49 dave at boostpro dot com
  2012-09-25 15:42 ` [Bug c++/54706] " paolo.carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dave at boostpro dot com @ 2012-09-25 14:49 UTC (permalink / raw)
  To: gcc-bugs


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());


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-31 20:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-25 14:49 [Bug c++/54706] New: -fsyntax-only suppresses a compilation error dave at boostpro dot com
2012-09-25 15:42 ` [Bug c++/54706] " paolo.carlini at oracle dot com
2012-09-25 15:53 ` paolo.carlini at oracle dot com
2012-09-25 19:55 ` dave at boostpro dot com
2012-10-16 23:09 ` paolo.carlini at oracle dot com
2014-07-19 16:06 ` paolo.carlini at oracle dot com
2014-07-27 11:07 ` paolo.carlini at oracle dot com
2021-07-31 20:49 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).