public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63878] New: Variables of incomplete type can be defined with -fno-fat-lto-objects
@ 2014-11-14 19:25 mustrumr97 at gmail dot com
  2014-11-14 19:28 ` [Bug c/63878] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mustrumr97 at gmail dot com @ 2014-11-14 19:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63878

            Bug ID: 63878
           Summary: Variables of incomplete type can be defined with
                    -fno-fat-lto-objects
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mustrumr97 at gmail dot com

a.c:
struct a x;

gcc -flto -fno-fat-lto-objects -c a.c # ok
gcc -flto -ffat-lto-objects -c a.c # fail

I think this should always be rejected.


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

* [Bug c/63878] Variables of incomplete type can be defined with -fno-fat-lto-objects
  2014-11-14 19:25 [Bug c/63878] New: Variables of incomplete type can be defined with -fno-fat-lto-objects mustrumr97 at gmail dot com
@ 2014-11-14 19:28 ` pinskia at gcc dot gnu.org
  2014-11-14 21:21 ` joseph at codesourcery dot com
  2021-07-29 17:36 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-11-14 19:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63878

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-14
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is the error message is emitted way too late and not by the
front-end but by the middle-end.

Confirmed.


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

* [Bug c/63878] Variables of incomplete type can be defined with -fno-fat-lto-objects
  2014-11-14 19:25 [Bug c/63878] New: Variables of incomplete type can be defined with -fno-fat-lto-objects mustrumr97 at gmail dot com
  2014-11-14 19:28 ` [Bug c/63878] " pinskia at gcc dot gnu.org
@ 2014-11-14 21:21 ` joseph at codesourcery dot com
  2021-07-29 17:36 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2014-11-14 21:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63878

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
This is probably essentially the same as bug 24293 (reporting such an 
issue with -fsyntax-only).


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

* [Bug c/63878] Variables of incomplete type can be defined with -fno-fat-lto-objects
  2014-11-14 19:25 [Bug c/63878] New: Variables of incomplete type can be defined with -fno-fat-lto-objects mustrumr97 at gmail dot com
  2014-11-14 19:28 ` [Bug c/63878] " pinskia at gcc dot gnu.org
  2014-11-14 21:21 ` joseph at codesourcery dot com
@ 2021-07-29 17:36 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-29 17:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63878

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this has been fixed since GCC 6 by PR 24293 so closing as a dup.

*** This bug has been marked as a duplicate of bug 24293 ***

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

end of thread, other threads:[~2021-07-29 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-14 19:25 [Bug c/63878] New: Variables of incomplete type can be defined with -fno-fat-lto-objects mustrumr97 at gmail dot com
2014-11-14 19:28 ` [Bug c/63878] " pinskia at gcc dot gnu.org
2014-11-14 21:21 ` joseph at codesourcery dot com
2021-07-29 17:36 ` 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).