public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6477: Segfault on conflicting types in trivial code
@ 2002-04-26  8:56 corsepiu
  0 siblings, 0 replies; 3+ messages in thread
From: corsepiu @ 2002-04-26  8:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6477
>Category:       c++
>Synopsis:       Segfault on conflicting types in trivial code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 26 08:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ralf Corsepius
>Release:        gcc version 3.1 20020424 (prerelease)
>Organization:
>Environment:
i686-linux, binutils-2.12.90.0.4

Configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/opt/gcc31 --mandir=/opt/gcc31/share/man --infodir=/opt/gcc31/share/info --with-local-prefix=/usr/local --enable-languages=c,c++ --disable-nls --enable-shared --with-system-zlib --host=i486-suse-linux --build=i486-suse-linux
>Description:
# g++31 -o pr6465.o pr6465.cc
pr6465.cc:2: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

This is a regression against 3.0.4, which correctly diagnoses the illegal code:
# g++ -o pr6465.o pr6465.cc
pr6465.cc:2: conflicting types for `struct Tk_PostscriptInfo'
pr6465.cc:1: previous declaration as `typedef struct 
   Tk_PostscriptInfo_*Tk_PostscriptInfo'

Note: This PR replaces PR6465, which can be closed.
>How-To-Repeat:
Compile this code (Also in the attachment)

typedef struct Tk_PostscriptInfo_ *Tk_PostscriptInfo;
typedef struct Tk_PostscriptInfo Tk_PostscriptInfo;
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="pr6465.cc"
Content-Disposition: inline; filename="pr6465.cc"

typedef struct Tk_PostscriptInfo_ *Tk_PostscriptInfo;
typedef struct Tk_PostscriptInfo Tk_PostscriptInfo;


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

* Re: c++/6477: Segfault on conflicting types in trivial code
@ 2003-01-01 19:45 neroden
  0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-01 19:45 UTC (permalink / raw)
  To: corsepiu, gcc-bugs, gcc-prs, nobody

Synopsis: Segfault on conflicting types in trivial code

State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan  1 11:45:16 2003
State-Changed-Why:
    On mainline as of 2003-01-01, error correctly diagnosed with both c++ and C.  Whee.

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


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

* Re: c++/6477: Segfault on conflicting types in trivial code
@ 2002-04-28 14:05 jakub
  0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-04-28 14:05 UTC (permalink / raw)
  To: corsepiu, gcc-bugs, gcc-prs, nobody

Synopsis: Segfault on conflicting types in trivial code

State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Sun Apr 28 14:05:16 2002
State-Changed-Why:
    Caused by
    2002-04-12  Richard Sandiford  <rsandifo@redhat.com>
    
            * decl.c (duplicate_decls): Don't try to unify an implicit typedef
            with an explicit one.
            (follow_tag_typedef): New.
            (lookup_tag): Use it to extract the tag of an explicit typedef.
            (xref_tag): Likewise.
    
    patch, testing fix.

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


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-26  8:56 c++/6477: Segfault on conflicting types in trivial code corsepiu
2002-04-28 14:05 jakub
2003-01-01 19:45 neroden

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