public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11461] New: internal compiler error: in build_modify_expr, at cp/typeck.c:5346
@ 2003-07-08  9:19 have at ann dot jussieu dot fr
  2003-07-08 13:01 ` [Bug c++/11461] [3.3 Regression] " pinskia at physics dot uc dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: have at ann dot jussieu dot fr @ 2003-07-08  9:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11461

           Summary: internal compiler error: in build_modify_expr, at
                    cp/typeck.c:5346
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: have at ann dot jussieu dot fr
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Linux-2.4.20 i686

Compiling the following code make an internal compiler error. 
However, gcc 3.2.3, 3.0.4 and 2.95.4 compile this piece of code without any 
error or warning.  
Moreover with 3.3.1 (gcc version 3.3.1 20030626 (Debian prerelease)), if 
'integer' is declared when used (see integer2) compilation is also OK. 
---%<--------------------- 
struct Parameter { 
  virtual ~Parameter() { } 
}; 
 
struct IntegerParameter : public Parameter { 
  int __intValue; 
  operator int&() { return __intValue; } 
}; 
 
int main() { 
  IntegerParameter ip; 
  Parameter* p = &ip; 
  int integer; 
  integer = static_cast<int&>(dynamic_cast<IntegerParameter&>(*p)); 
  // int integer2 = static_cast<int&>(dynamic_cast<IntegerParameter&>(*p)); 
}


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

end of thread, other threads:[~2003-07-09 11:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-08  9:19 [Bug c++/11461] New: internal compiler error: in build_modify_expr, at cp/typeck.c:5346 have at ann dot jussieu dot fr
2003-07-08 13:01 ` [Bug c++/11461] [3.3 Regression] " pinskia at physics dot uc dot edu
2003-07-08 13:38 ` bangerth at dealii dot org
2003-07-08 16:09 ` pinskia at physics dot uc dot edu
2003-07-09  8:29 ` have at ann dot jussieu dot fr
2003-07-09 11:21 ` pinskia at physics dot uc dot edu

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