public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10428: struct <typedef'ed name> causes internal error
@ 2003-04-17 22:46 lk1
  0 siblings, 0 replies; only message in thread
From: lk1 @ 2003-04-17 22:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10428
>Category:       c++
>Synopsis:       struct <typedef'ed name> causes internal error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 17 22:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Lawrence Kesteloot
>Release:        gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
>Organization:
>Environment:
Linux neelypcx 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux
>Description:
Compile file in "How-To-Repeat" with "gcc foo.cpp". I get this error:

foo.cpp:7: Internal compiler error in write_unscoped_name, at cp/mangle.c:782
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

In another context (more complex), I got this error:

/home/lawrence/src/include/ui.hpp:228: Internal error #20000521.
/home/lawrence/src/include/ui.hpp:228: Internal compiler error in write_unscoped_name, at cp/mangle.c:782
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

This error doesn't happen if there's no namespace.
>How-To-Repeat:
namespace Name {

    typedef void *(*Function)( void *, int );

    struct Foo {
        struct Function xyz[5];
    };

}
>Fix:
The source supplied above is buggy (the "struct" shouldn't be there).  But there shouldn't be a compiler error, either.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-17 22:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 22:46 c++/10428: struct <typedef'ed name> causes internal error lk1

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