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
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
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 ` paolo.carlini at oracle dot com
2012-09-25 15:53 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-09-25 15:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-25 15:42:09 UTC ---
As already discussed in another PR, with -fsyntax-only no template
instantiation occurs. Can be that?
In any case, let's add Jason in CC about the instantiation issue, quite a few
people are not so happy about it. Maybe a good occasion to clarify that (very
old, AFAIK) choice...
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
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
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-09-25 15:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-25 15:53:24 UTC ---
See PR52964
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dave at boostpro dot com @ 2012-09-25 19:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
--- Comment #3 from Dave Abrahams <dave at boostpro dot com> 2012-09-25 19:55:31 UTC ---
(In reply to comment #1)
> As already discussed in another PR, with -fsyntax-only no template
> instantiation occurs. Can be that?
Certainly that explains it.
> In any case, let's add Jason in CC about the instantiation issue, quite a few
> people are not so happy about it. Maybe a good occasion to clarify that (very
> old, AFAIK) choice...
Or change it, or provide another option. Clang's -fsyntax-only does
instantiate, BTW.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
2012-09-25 14:49 [Bug c++/54706] New: -fsyntax-only suppresses a compilation error dave at boostpro dot com
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-16 23:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xinliangli at gmail dot com
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-16 23:08:42 UTC ---
*** Bug 52964 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
2012-09-25 14:49 [Bug c++/54706] New: -fsyntax-only suppresses a compilation error dave at boostpro dot com
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-07-19 16:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-07-19
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
Ever confirmed|0 |1
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Looks like it makes sense to instantiate in GCC too.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
2012-09-25 14:49 [Bug c++/54706] New: -fsyntax-only suppresses a compilation error dave at boostpro dot com
` (4 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-07-27 11:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/54706] -fsyntax-only suppresses a compilation error
2012-09-25 14:49 [Bug c++/54706] New: -fsyntax-only suppresses a compilation error dave at boostpro dot com
` (5 preceding siblings ...)
2014-07-27 11:07 ` paolo.carlini at oracle dot com
@ 2021-07-31 20:49 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-31 20:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54706
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |6.0
Resolution|--- |FIXED
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 6+, most likely by r6-1401 which changed slightly how
-fsyntax-only is handled.
^ 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).