Launchpad has imported 9 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43082.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-02-15T15:46:45+00:00 Matthias Klose wrote:

seen with 4.3, 4.4 and trunk:

$ gcc -c main.i
main.c: In function 'main':
main.c:22:5: error: void value not ignored as it ought to be
main.c:22:5: error: void value not ignored as it ought to be
main.c:22:8: internal compiler error: tree check: expected class 'type', have 
'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1233
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/2

------------------------------------------------------------------------
On 2010-02-15T15:47:06+00:00 Matthias Klose wrote:

Created attachment 19878
preprocessed source

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/3

------------------------------------------------------------------------
On 2010-02-16T10:21:57+00:00 Rguenth wrote:

We get

6493          STRIP_USELESS_TYPE_CONVERSION (*expr_p);
(gdb) call debug_tree (*expr_p)
 <nop_expr 0x7ffff5b99150
    type <boolean_type 0x7ffff7ee4888 _Bool public unsigned QI
        size <integer_cst 0x7ffff7ed2730 constant 8>
        unit size <integer_cst 0x7ffff7ed2758 constant 1>
        align 8 symtab 0 alias set -1 canonical type 0x7ffff7ee4888 precision 1 
min <integer_cst 0x7ffff7ed2b68 0> max <integer_cst 0x7ffff7ed2bb8 1>>
   
    arg 0 <cond_expr 0x7ffff5b48280 type <error_mark 0x7ffff7edab70>


The FEs shouldn't feed us random crap really ...

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/5

------------------------------------------------------------------------
On 2010-03-03T19:00:50+00:00 Pinskia wrote:

Reduced testcase:
int main(void)
{
    int gpf;
    if(gpf ? (void) (0)  : f ()) ;
}
--- CUT ---
Looking into it.

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/6

------------------------------------------------------------------------
On 2010-03-03T19:02:55+00:00 Pinskia wrote:

I get:
t1.c:4:7: internal compiler error: tree check: expected class ‘type’, have 
‘exceptional’ (error_mark) in get_narrower, at tree.c:7654

Now.

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/7

------------------------------------------------------------------------
On 2010-03-03T19:21:30+00:00 Pinskia wrote:

I have a patch to c_common_truthvalue_conversion which fixes this issue.

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/8

------------------------------------------------------------------------
On 2010-03-08T17:15:58+00:00 Pinskia wrote:

No longer working on this one.

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/9

------------------------------------------------------------------------
On 2010-09-20T18:01:00+00:00 Matthias Klose wrote:

trunk 20100918 fails with:

gcc -g -O0 -c foo.c
foo.c: In function 'main':
foo.c:4:5: error: void value not ignored as it ought to be
foo.c:4:5: error: void value not ignored as it ought to be
foo.c:4:7: internal compiler error: tree check: expected class 'type', have 
'exceptional' (error_mark) in get_narrower, at tree.c:7856
Please submit a full bug report,
with preprocessed source if appropriate.


Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/10

------------------------------------------------------------------------
On 2011-01-19T00:55:38+00:00 Nicola-gcc wrote:

This is a regression since my stock RedHat gcc 4.1.2 compiler doesn't
ICE.

I have a patch that should address Joseph's comments to Andrew's original
patch.  I'll submit it once it's finished testing.

Thanks

Reply at: https://bugs.launchpad.net/gcc/+bug/521112/comments/11


** Changed in: gcc
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/521112

Title:
  [PR43082] ICE in tree check: expected class 'type', have 'exceptional'
  (error_mark) in useless_type_conversion_p

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to