public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9386: [3.3 regression] anon union cause segfaults (with testcase)
@ 2003-01-21 16:26 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-21 16:26 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, matz, nobody

Synopsis: [3.3 regression] anon union cause segfaults (with testcase)

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 21 16:26:35 2003
State-Changed-Why:
    Confirmed. It's fixed on mainline, though.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9386


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

* Re: c++/9386: [3.3 regression] anon union cause segfaults (with testcase)
@ 2003-01-22 19:20 zlomek
  0 siblings, 0 replies; 3+ messages in thread
From: zlomek @ 2003-01-22 19:20 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, matz, nobody

Synopsis: [3.3 regression] anon union cause segfaults (with testcase)

State-Changed-From-To: analyzed->closed
State-Changed-By: zlomek
State-Changed-When: Wed Jan 22 19:20:25 2003
State-Changed-Why:
    Bug fix has been checked in.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9386


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

* c++/9386: [3.3 regression] anon union cause segfaults (with testcase)
@ 2003-01-21 14:16 matz
  0 siblings, 0 replies; 3+ messages in thread
From: matz @ 2003-01-21 14:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9386
>Category:       c++
>Synopsis:       [3.3 regression] anon union cause segfaults (with testcase)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 21 14:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     matz@suse.de
>Release:        3.3 20030113 CVS
>Organization:
>Environment:
x86_64-linux
>Description:
compiling the below snippet with 'g++ -c -O2 bla.ii' segfaults.
I did a small trace of the SEGV, and it happens because lookup_anon_field() return NULL for the requested anon field, because somehow it's called (from build_class_member_access_expr()) with both parameter T and TYPE being the same.  I don't know why.  I _guess_ this might
be a duplicate of 8863, but because of missing attachment there I couldn't check.
---------------
struct Bla
{
  void operator()();
};

struct Adjustment {
  void set_lower(float lower) {changed();}
  union {
    Bla changed;
  };
};
-----------------
>How-To-Repeat:
compile the snippet above
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-22 19:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-21 16:26 c++/9386: [3.3 regression] anon union cause segfaults (with testcase) bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-01-22 19:20 zlomek
2003-01-21 14:16 matz

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).