public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
@ 2005-08-04  4:04 flash at pobox dot com
  2005-08-04  4:06 ` [Bug c/23225] " flash at pobox dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: flash at pobox dot com @ 2005-08-04  4:04 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3387 bytes --]

The code below gives the following error:
internal compiler error: tree check: expected class type, have exceptional (error_mark) in 
build_pointer_type_for_mode, at tree.c:4246
    This sounds like bug 18177, but that was supposedly fixed in 4.0.0.
    PalmSource bug 105393.

Here's the code:
typedef int32_t (*ProcPtr)();void Dispatcher(int32_t startCode)   (__builtin_offsetof (ArgsType, 
largeMsgLen) + sizeof(Args.largeMsgLen)))

    "__builtin_offsetof" is necessary for the crash, and is an artifact of preprocessing.  This is a Delta-
reduction of a larger file which fails without error under g++ 3.3.4, presumably correctly, due to a 
missing include file.


Here's the session:
93> /opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/
105393_CertMgrDispatcher_min.i
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+
+
Thread model: posix
gcc version 4.0.1
 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/
GCC_bugfiles/error/105393_CertMgrDispatcher_min.i -quiet -dumpbase 
105393_CertMgrDispatcher_min.i -mtune=pentiumpro -auxbase 105393_CertMgrDispatcher_min -
version -o /tmp/cczS74RP.s
GNU C++ version 4.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: ISO C++ forbids 
declaration of ‘int32_t’ with no type
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: typedef ‘int32_t’ 
is initialized (use __typeof__ instead)
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: ‘ProcPtr’ was not 
declared in this scope
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: expected ‘,’ or â
€˜;’ before ‘(’ token
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: error: function ‘void 
Dispatcher(int32_t)’ is initialized like a variable
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: error: expected type-specifier 
before ‘ArgsType’
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: error: expected `,' before â
€˜ArgsType’
../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: internal compiler error: tree 
check: expected class ‘type’, have ‘exceptional’ (error_mark) in 
build_pointer_type_for_mode, at tree.c:4246
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: tree check: expected class type, have exceptional
                    (error_mark) in build_pointer_type_for_mode, at
                    tree.c:4246
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: flash at pobox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c/23225] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
@ 2005-08-04  4:06 ` flash at pobox dot com
  2005-08-04  4:18 ` [Bug c++/23225] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: flash at pobox dot com @ 2005-08-04  4:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From flash at pobox dot com  2005-08-04 04:06 -------
Created an attachment (id=9427)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9427&action=view)
105393_CertMgrDispatcher_min.i


-- 


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


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

* [Bug c++/23225] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
  2005-08-04  4:06 ` [Bug c/23225] " flash at pobox dot com
@ 2005-08-04  4:18 ` pinskia at gcc dot gnu dot org
  2005-08-04  4:19 ` phython at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-04  4:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-04 04:17 -------
Confirmed, a little further reduced:
void Dispatcher()
 (__builtin_offsetof (ArgsType, largeMsgLen))



Even changing __builtin_offsetof to __offsetof does not make 3.4.0 ICE.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |c++
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-04 04:17:11
               date|                            |
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23225] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
  2005-08-04  4:06 ` [Bug c/23225] " flash at pobox dot com
  2005-08-04  4:18 ` [Bug c++/23225] " pinskia at gcc dot gnu dot org
@ 2005-08-04  4:19 ` phython at gcc dot gnu dot org
  2005-08-04  4:20 ` [Bug c++/23225] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-08-04  4:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-08-04 04:19 -------
 This doesn't ice with the C frontend.  However, it does with the C++ frontend
with a recent build of mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |---


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


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

* [Bug c++/23225] [4.0/4.1 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (2 preceding siblings ...)
  2005-08-04  4:19 ` phython at gcc dot gnu dot org
@ 2005-08-04  4:20 ` pinskia at gcc dot gnu dot org
  2005-08-04  4:47 ` phython at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-04  4:20 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|tree check: expected class  |[4.0/4.1 Regression] tree
                   |type, have exceptional      |check: expected class type,
                   |(error_mark) in             |have exceptional
                   |build_pointer_type_for_mode,|(error_mark) in
                   |at tree.c:4246              |build_pointer_type_for_mode,
                   |                            |at tree.c:4246
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23225] [4.0/4.1 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (3 preceding siblings ...)
  2005-08-04  4:20 ` [Bug c++/23225] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-04  4:47 ` phython at gcc dot gnu dot org
  2005-08-08 18:28 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-08-04  4:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-08-04 04:47 -------
 Having build_pointer_type_for_mode return error_mark_node when it is passed
error_mark_node seems to fix this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |phython at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-08-04 04:17:11         |2005-08-04 04:47:25
               date|                            |


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


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

* [Bug c++/23225] [4.0/4.1 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (4 preceding siblings ...)
  2005-08-04  4:47 ` phython at gcc dot gnu dot org
@ 2005-08-08 18:28 ` pinskia at gcc dot gnu dot org
  2005-08-08 18:39 ` phython at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-08 18:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-08 18:28 -------
: Search converges between 2004-06-01-trunk (#459) and 2004-06-02-trunk (#460).


Looks like when __builtin_offsetof was added :(.

-- 


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


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

* [Bug c++/23225] [4.0/4.1 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (5 preceding siblings ...)
  2005-08-08 18:28 ` pinskia at gcc dot gnu dot org
@ 2005-08-08 18:39 ` phython at gcc dot gnu dot org
  2005-08-11  4:22 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-08-08 18:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-08-08 18:38 -------
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg00370.html

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


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


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

* [Bug c++/23225] [4.0/4.1 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (6 preceding siblings ...)
  2005-08-08 18:39 ` phython at gcc dot gnu dot org
@ 2005-08-11  4:22 ` cvs-commit at gcc dot gnu dot org
  2005-08-11  4:22 ` phython at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-11  4:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-11 04:22 -------
Subject: Bug 23225

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	phython@gcc.gnu.org	2005-08-11 04:21:55

Modified files:
	gcc            : ChangeLog tree.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: crash27.C 

Log message:
	2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
	
	PR c++/23225
	* tree.c (build_pointer_type_for_mode): Robustify.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9699&r2=2.9700
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.498&r2=1.499
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5904&r2=1.5905
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash27.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/23225] [4.0/4.1 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (7 preceding siblings ...)
  2005-08-11  4:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-11  4:22 ` phython at gcc dot gnu dot org
  2005-09-06  5:37 ` [Bug c++/23225] [4.0 " cvs-commit at gcc dot gnu dot org
  2005-09-06  5:40 ` phython at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-08-11  4:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-08-11 04:22 -------
fixed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.0.0 4.1.0                 |4.0.0
      Known to work|3.4.0                       |3.4.0 4.1.0


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


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

* [Bug c++/23225] [4.0 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (8 preceding siblings ...)
  2005-08-11  4:22 ` phython at gcc dot gnu dot org
@ 2005-09-06  5:37 ` cvs-commit at gcc dot gnu dot org
  2005-09-06  5:40 ` phython at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-06  5:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-06 05:37 -------
Subject: Bug 23225

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	phython@gcc.gnu.org	2005-09-06 05:36:59

Modified files:
	gcc            : ChangeLog tree.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: crash27.C 

Log message:
	2005-09-05  James A. Morrison  <phython@gcc.gnu.org>
	
	PR c++/23225
	* tree.c (build_pointer_type_for_mode): Robustify.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.410&r2=2.7592.2.411
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.466.4.6&r2=1.466.4.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.378&r2=1.5084.2.379
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash27.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.12.1



-- 


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


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

* [Bug c++/23225] [4.0 Regression] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
  2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
                   ` (9 preceding siblings ...)
  2005-09-06  5:37 ` [Bug c++/23225] [4.0 " cvs-commit at gcc dot gnu dot org
@ 2005-09-06  5:40 ` phython at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-09-06  5:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-09-06 05:39 -------
Fixed on 4.0 branch now as well.

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


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


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

end of thread, other threads:[~2005-09-06  5:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04  4:04 [Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 flash at pobox dot com
2005-08-04  4:06 ` [Bug c/23225] " flash at pobox dot com
2005-08-04  4:18 ` [Bug c++/23225] " pinskia at gcc dot gnu dot org
2005-08-04  4:19 ` phython at gcc dot gnu dot org
2005-08-04  4:20 ` [Bug c++/23225] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-04  4:47 ` phython at gcc dot gnu dot org
2005-08-08 18:28 ` pinskia at gcc dot gnu dot org
2005-08-08 18:39 ` phython at gcc dot gnu dot org
2005-08-11  4:22 ` cvs-commit at gcc dot gnu dot org
2005-08-11  4:22 ` phython at gcc dot gnu dot org
2005-09-06  5:37 ` [Bug c++/23225] [4.0 " cvs-commit at gcc dot gnu dot org
2005-09-06  5:40 ` phython 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).