public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
@ 2004-09-22 19:06 micis at gmx dot de
  2004-09-22 19:07 ` [Bug c++/17618] " micis at gmx dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: micis at gmx dot de @ 2004-09-22 19:06 UTC (permalink / raw)
  To: gcc-bugs

/usr/local/gcc40/bin/g++40 -Wall -c -g -pipe -O0 -mcpu=G5 -fpermissive -
maltivec -mabi=altivec -o MeRecLut.o MeRecLut.ii  -v
Reading specs from /usr/local/gcc40/lib/gcc/powerpc-unknown-linux-
gnu/4.0.0/specs
Configured with: ../gcc40/configure --prefix=/usr/local/gcc40 --program-
suffix=40 --with-cpu=G5 --enable-altivec --enable-languages=c,c++ --enable-
checking
Thread model: posix
gcc version 4.0.0 20040919 (experimental)
 /usr/local/gcc40/libexec/gcc/powerpc-unknown-linux-gnu/4.0.0/cc1plus -
fpreprocessed MeRecLut.ii -quiet -dumpbase MeRecLut.ii -mcpu=G5 -maltivec -
mabi=altivec -auxbase-strip MeRecLut.o -g -O0 -Wall -version -fpermissive -o - |
 as -mpower4 -maltivec -maltivec -many -V -Qy -o MeRecLut.o -
GNU C++ version 4.0.0 20040919 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 4.0.0 20040919 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU assembler version 2.15.90 (ppc-yellowdog-linux) using BFD version 2.15.90 
20040221
MeRecLut.ii: In member function `int MeRecLut::setData(int, char*, unsigned 
int, unsigned int, unsigned int**)':
MeRecLut.ii:45: error: `m_data' was not declared in this scope
MeRecLut.ii:52: internal compiler error: tree check: expected class 'type', 
have 'exceptional' (error_mark) in cp_convert_to_pointer, at cp/cvt.c:83

-- 
           Summary: [4.0 Regression] ICE in cp_convert_to_pointer, at
                    cp/cvt.c:83
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-linux-gnu
  GCC host triplet: powerpc-linux-gnu
GCC target triplet: powerpc-linux-gnu


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
@ 2004-09-22 19:07 ` micis at gmx dot de
  2004-09-22 19:46 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: micis at gmx dot de @ 2004-09-22 19:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From micis at gmx dot de  2004-09-22 19:07 -------
Created an attachment (id=7197)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7197&action=view)
mostly reduced preprocessed source


-- 


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
  2004-09-22 19:07 ` [Bug c++/17618] " micis at gmx dot de
@ 2004-09-22 19:46 ` reichelt at gcc dot gnu dot org
  2004-09-22 21:06 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-22 19:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-09-22 19:46 -------
Confirmed:

Here's a reduced testcase:
===============================
void foo()
{
    p;
    (void*) p;
}
===============================

The ICE only happens with the C++ frontend, and not with the C frontend.

Phils's regression tester says:
: Search converges between 2004-03-01-trunk (#446) and 2004-04-01-trunk (#447).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-
                   |                            |checking, ice-on-invalid-
                   |                            |code, monitored
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.2
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-22 19:46:16
               date|                            |
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
  2004-09-22 19:07 ` [Bug c++/17618] " micis at gmx dot de
  2004-09-22 19:46 ` reichelt at gcc dot gnu dot org
@ 2004-09-22 21:06 ` pinskia at gcc dot gnu dot org
  2004-09-23  0:03 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 21:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 21:06 -------
I have a fix.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
                   ` (2 preceding siblings ...)
  2004-09-22 21:06 ` pinskia at gcc dot gnu dot org
@ 2004-09-23  0:03 ` pinskia at gcc dot gnu dot org
  2004-09-23  7:08 ` micis at gmx dot de
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-23  0:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-23 00:03 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02324.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
                   ` (3 preceding siblings ...)
  2004-09-23  0:03 ` pinskia at gcc dot gnu dot org
@ 2004-09-23  7:08 ` micis at gmx dot de
  2004-09-23 20:04 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: micis at gmx dot de @ 2004-09-23  7:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From micis at gmx dot de  2004-09-23 07:08 -------
Dear Mr Pinski,
Thank you for the very fast reaction.
In the morning I applied the patch, but unfortunately I couldn't compile my 
application because is was broken by my colleagues doing incomplete checkins.
Today I'm in a meeting, but as soon as possible I will test it and post the 
result.
Michael Cieslinski


-- 


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
                   ` (4 preceding siblings ...)
  2004-09-23  7:08 ` micis at gmx dot de
@ 2004-09-23 20:04 ` cvs-commit at gcc dot gnu dot org
  2004-09-23 20:06 ` pinskia at gcc dot gnu dot org
  2004-09-23 20:16 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-23 20:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-23 20:04 -------
Subject: Bug 17618

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-09-23 20:04:22

Modified files:
	gcc/cp         : ChangeLog cvt.c 

Log message:
	004-09-23  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/17618
	* cvt.c (cp_convert_to_pointer): Return early when the type is
	an error_mark_node.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4380&r2=1.4381
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&r1=1.165&r2=1.166



-- 


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
                   ` (5 preceding siblings ...)
  2004-09-23 20:04 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-23 20:06 ` pinskia at gcc dot gnu dot org
  2004-09-23 20:16 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-23 20:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-23 20:05 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
  2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
                   ` (6 preceding siblings ...)
  2004-09-23 20:06 ` pinskia at gcc dot gnu dot org
@ 2004-09-23 20:16 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-23 20:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-23 20:16 -------
Subject: Bug 17618

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-09-23 20:16:48

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/lookup: crash5.C 

Log message:
	2004-09-23  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/17618
	* g++.dg/lookup/crash5.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4336&r2=1.4337
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/crash5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/17618] [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83
       [not found] <bug-17618-7559@http.gcc.gnu.org/bugzilla/>
@ 2005-10-11  0:39 ` cvs-commit at gcc dot gnu dot org
  0 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-11  0:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from cvs-commit at gcc dot gnu dot org  2005-10-11 00:39 -------
Subject: Bug 17618

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-3_4-branch
Changes by:     reichelt@gcc.gnu.org    2005-10-11 00:39:26

Modified files:
        gcc/cp         : ChangeLog cvt.c name-lookup.c typeck.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/g++.dg/lookup: crash5.C forscope2.C 
        gcc/testsuite/g++.dg/conversion: const3.C 

Log message:
        Backport:
        2004-09-23  Andrew Pinski  <pinskia@physics.uc.edu>
        PR c++/17618
        * cvt.c (cp_convert_to_pointer): Return early when the type is
        an error_mark_node.

        2004-05-22  Roger Sayle  <roger@eyesopen.com>
        * name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by
        returning when TREE_TYPE is error_mark_node.
        * typeck.c (require_complete_type): Return error_mark_node if
        value's type is an error_mark_node.

        2004-11-02  Mark Mitchell  <mark@codesourcery.com>
        PR c++/18177
        * typeck.c (build_const_cast): Use error_operand_p.

        2004-09-23  Andrew Pinski  <pinskia@physics.uc.edu>
        PR c++/17618
        * g++.dg/lookup/crash5.C: New test.

        2004-05-22  Wolfgang Bangerth  <bangerth@dealii.org>
        Roger Sayle  <roger@eyesopen.com>
        * g++.dg/lookup/forscope2.C: New test case.

        2004-11-02  Mark Mitchell  <mark@codesourcery.com>
        PR c++/18177
        * g++.dg/conversion/const3.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.245&r2=1.3892.2.246
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.151.4.4&r2=1.151.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.34.2.25&r2=1.34.2.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.519.2.30&r2=1.519.2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.440&r2=1.3389.2.441
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/crash5.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.70.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/forscope2.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.76.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/const3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.48.1


-- 


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


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

end of thread, other threads:[~2005-10-11  0:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 19:06 [Bug c++/17618] New: [4.0 Regression] ICE in cp_convert_to_pointer, at cp/cvt.c:83 micis at gmx dot de
2004-09-22 19:07 ` [Bug c++/17618] " micis at gmx dot de
2004-09-22 19:46 ` reichelt at gcc dot gnu dot org
2004-09-22 21:06 ` pinskia at gcc dot gnu dot org
2004-09-23  0:03 ` pinskia at gcc dot gnu dot org
2004-09-23  7:08 ` micis at gmx dot de
2004-09-23 20:04 ` cvs-commit at gcc dot gnu dot org
2004-09-23 20:06 ` pinskia at gcc dot gnu dot org
2004-09-23 20:16 ` cvs-commit at gcc dot gnu dot org
     [not found] <bug-17618-7559@http.gcc.gnu.org/bugzilla/>
2005-10-11  0:39 ` cvs-commit at gcc dot gnu dot org

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