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

* [Bug c++/11461] [3.3 Regression] internal compiler error: in build_modify_expr, at cp/typeck.c:5346
  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 ` pinskia at physics dot uc dot edu
  2003-07-08 13:38 ` bangerth at dealii dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-08 13:01 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|internal compiler error: in |[3.3 Regression] internal
                   |build_modify_expr, at       |compiler error: in
                   |cp/typeck.c:5346            |build_modify_expr, at
                   |                            |cp/typeck.c:5346
   Target Milestone|3.4                         |3.3.1


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-08 13:01 -------
I do not get an ICE on 3.3.1 (20030616) or the mainline (20030707), I will try a newer version of 
3.3.1 to see if the ICE happens, if it does then this is a regression.


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

* [Bug c++/11461] [3.3 Regression] internal compiler error: in build_modify_expr, at cp/typeck.c:5346
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2003-07-08 13:38 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



------- Additional Comments From bangerth at dealii dot org  2003-07-08 13:38 -------
I don't get an ICE with gcc 3.3 release as well. You didn't say which flags you
used for compilation, though. Would you mind posting the exact
command line that triggers the error for you, as well as the output
of gcc -v?

Thanks
  Wolfgang


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

* [Bug c++/11461] [3.3 Regression] internal compiler error: in build_modify_expr, at cp/typeck.c:5346
  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
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-08 16:09 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-08 16:09 -------
I cannot reproduce it on 3.3.1 (20030707). Can you provide the output which contains the ICE?


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

* [Bug c++/11461] [3.3 Regression] internal compiler error: in build_modify_expr, at cp/typeck.c:5346
  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
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: have at ann dot jussieu dot fr @ 2003-07-09  8:29 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



------- Additional Comments From have at ann dot jussieu dot fr  2003-07-09 08:29 -------
My version of g++ is 
> g++ -v 
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs 
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib 
--enable-nls --without-included-gettext --enable-__cxa_atexit 
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm 
--enable-java-awt=xlib --enable-objc-gc i386-linux 
Thread model: posix 
gcc version 3.3.1 20030626 (Debian prerelease) 
 
I do not use any flag :  
> g++ ice.cpp 
ice.cpp: In function `int main()': 
ice.cpp:14: internal compiler error: in build_modify_expr, at cp/typeck.c:5346 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/11461] [3.3 Regression] internal compiler error: in build_modify_expr, at cp/typeck.c:5346
  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
                   ` (3 preceding siblings ...)
  2003-07-09  8:29 ` have at ann dot jussieu dot fr
@ 2003-07-09 11:21 ` pinskia at physics dot uc dot edu
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-09 11:21 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-09 11:21 -------
Closing as Wolfgang nor I could reproduce this bug. Since you are using a Debian prerelease, I 
would report it to Debian because it might just be that a newer version removes the problem.


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