public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9847: g++-3.4 ice on :?-operator with double class definition in  expand_expr
@ 2003-02-25 12:46 rassahah
  0 siblings, 0 replies; only message in thread
From: rassahah @ 2003-02-25 12:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9847
>Category:       c++
>Synopsis:       g++-3.4 ice on :?-operator with double class definition in  expand_expr
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 25 12:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rasmus Hahn
>Release:        unknown-1.0
>Organization:
>Environment:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-threads --enable-languages=c,c++,objc : (reconfigured)  : (reconfigured) 
Thread model: posix
gcc version 3.4 20030225 (experimental)
>Description:
Internal compiler error after redifinition of class (QString in this case) and when compiling
:?-conditional expression. I suspect this is a variant of PR9440, but i do not know for
sure and perhaps this might help to correct any of these. Of course the How-To-Repeat program is not legal C-Code. The ICE does not show if the conditional depends not on
Variable 'x' but on constant value, for example '1'.
This bug is in my Version 3.4 but not in my Version 3.3-20021206 as the case for PR9440.

$ g++ cc 
compiler-3.4-failuref.cc:3: warning: `class QString' only defines private 
   constructors and has no friends
compiler-3.4-failuref.cc:8: error: redefinition of `class QString'
compiler-3.4-failuref.cc:3: error: previous definition of `class QString'
compiler-3.4-failuref.cc: In function `const QString q()':
compiler-3.4-failuref.cc:14: internal compiler error: in expand_expr, at expr.c
   :8704
Please submit a full bug report,...
>How-To-Repeat:
compiler-3.4-failuref.cc:
class QString
{
  QString (const QString & a);
};


class QString { };

const QString q () {
  QString z;
  int x;
  /* no error if next 'x' is constant */
  return x ? QString () : QString ();
}
>Fix:

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


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

only message in thread, other threads:[~2003-02-25 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-25 12:46 c++/9847: g++-3.4 ice on :?-operator with double class definition in expand_expr rassahah

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