public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/92981] ICE in get_partitioning_class, at symtab.c:1966
       [not found] <bug-92981-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-04  6:02 ` xerofoify at gmail dot com
  2021-09-22  7:39 ` [Bug c++/92981] static anonymous union does not work pinskia at gcc dot gnu.org
  2021-09-22  7:41 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: xerofoify at gmail dot com @ 2020-04-04  6:02 UTC (permalink / raw)
  To: gcc-bugs

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

Nicholas Krause <xerofoify at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerofoify at gmail dot com

--- Comment #2 from Nicholas Krause <xerofoify at gmail dot com> ---
After looking through this with a debugger this seems odd to me:
if (alias && definition && !ultimate_alias_target ()->definition)

I'm not sure but after looking through it this seems to assume definition and
alias would be pointing  be true which does not seem to be the case with this
code and thus asserts here:
gcc_checking_assert (vnode->definition);

Seems this commit id,d3f2e41ea introduced it. Jan Hubicka are we certain
that definition and alias must both be true here as that does not appear 
to be the case for returning SYMBOL_EXTERNAL?

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

* [Bug c++/92981] static anonymous union does not work
       [not found] <bug-92981-4@http.gcc.gnu.org/bugzilla/>
  2020-04-04  6:02 ` [Bug ipa/92981] ICE in get_partitioning_class, at symtab.c:1966 xerofoify at gmail dot com
@ 2021-09-22  7:39 ` pinskia at gcc dot gnu.org
  2021-09-22  7:41 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-22  7:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ipa                         |c++
            Summary|ICE in                      |static anonymous union does
                   |get_partitioning_class, at  |not work
                   |symtab.c:1966               |
           Keywords|                            |link-failure

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't know if this is a front-end issue or a middle-end issue.
The problem is unrelated to LTO really.
Take:
static union {
  int yz;
  int t;
};

struct ra {
  static int &dy;
};

int &ra::dy =  (yz);

bool
bm ()
{
  return ra::dy == yz;
}

int main(void)
{
    return !bm();
}
-------- CUT -----
With just -g0, we get a link failure:
/opt/compiler-explorer/gcc-trunk-20210922/bin/../lib/gcc/x86_64-linux-gnu/12.0.0/../../../../x86_64-linux-gnu/bin/ld:
/tmp/ccBdpNQh.o:(.rodata+0x0): undefined reference to `yz'


4.1.2 produced some interesting assembly too:

        .local  yz
        .comm   yz,4,4
        .local  yz
        .comm   yz,4,4

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

* [Bug c++/92981] static anonymous union does not work
       [not found] <bug-92981-4@http.gcc.gnu.org/bugzilla/>
  2020-04-04  6:02 ` [Bug ipa/92981] ICE in get_partitioning_class, at symtab.c:1966 xerofoify at gmail dot com
  2021-09-22  7:39 ` [Bug c++/92981] static anonymous union does not work pinskia at gcc dot gnu.org
@ 2021-09-22  7:41 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-22  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

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 is a dup of bug 53932.

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

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

end of thread, other threads:[~2021-09-22  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-92981-4@http.gcc.gnu.org/bugzilla/>
2020-04-04  6:02 ` [Bug ipa/92981] ICE in get_partitioning_class, at symtab.c:1966 xerofoify at gmail dot com
2021-09-22  7:39 ` [Bug c++/92981] static anonymous union does not work pinskia at gcc dot gnu.org
2021-09-22  7:41 ` 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).