This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

c++/10249: -gxcoff switch causes parser to abort


>Number:         10249
>Category:       c++
>Synopsis:       -gxcoff switch causes parser to abort
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 27 22:36:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Fulton dot Green at Retek dot com
>Release:        3.3 20030324 (prerelease)
>Organization:
>Environment:
Chipset: PowerPC 603e
Make:    IBM
Model:   F40
OS:      AIX 4.3
>Description:
Invoking the C++ front-end, specifying XCOFF object output, on a source file containing a simple base class and subclass declaration:

   $(GCC_HOME)/lib/$(PLATFORM)/$(VERSION)/cc1plus -gxcoff How-To-Repeat.ii

generates the following message:

   <stdin>:7: internal compiler error: in tree_low_cst, at tree.c:3228

The referenced tree.c is in $GCCSRC/gcc, NOT $GCCSRC/gcc/cp.

The ICE disappears if the -gxcoff switch is removed.
>How-To-Repeat:
// filename: How-To-Repeat.ii
// a simple base class and subclass declaration
//
// compile with -gxcoff (assuming the compiler has
// support for it) to reproduce the problem

class BaseClass
{
   int x;
};

class Subclass : public BaseClass
{
  int y;
};
>Fix:
Choose one:
- don't declare subclasses
- don't use the -gxcoff switch
>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]