This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/97: Re: union bug



>Number:         97
>Category:       c++
>Synopsis:       union bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          analyzed
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 11 04:16:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     batali@cogsci.ucsd.edu
>Release:        2.95.2
>Organization:
>Environment:
>Description:
 Date: Fri, 10 Mar 2000 18:39:15 -0800
 Original-Message-Id: <200003110239.SAA01876@Mick.dinonet>


 gcc told me to report this....

 Here is the file tt.cpp:

 -----------------------

 typedef union {
   int slot1;
   int slot2;
 };

 -----------------------

 (This error is distilled from a bigger example.)

 Obviously the problem is that I forgot to put the name of the typedef, 
 but, as I said, gcc asked me to report it to you.

 Here's what I get from the command:

 %  gcc -Wall -v --save-temps tt.cpp

 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
 gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
  /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Wall -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ tt.cpp tt.ii
 GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/include/g++-2
  /usr/local/include
  /usr/i386-redhat-linux/include
  /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
  /usr/include
 End of search list.
  /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus tt.ii -quiet -dumpbase tt.cc -Wall -version -o tt.s
 GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
 tt.cpp:5: Internal compiler error.
 tt.cpp:5: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
 tt.cpp:5: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

 ================================================================

 here is tt.ii (for what it's worth)

 # 1 "tt.cpp"

 typedef union {
   int slot1;
   int slot2;
 };

 ================================================================

 John Batali                                    batali@cogsci.ucsd.edu
 Department of Cognitive Science, University of California at San Diego
 9500 Gilman Drive; La Jolla, CA 92093-0515      (619) 534-7308
 http://cogsci.ucsd.edu/~batali/                 (619) 299-4403

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]