Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000172 [cparser] semantic crash always 2016-01-18 17:31 2016-01-18 22:12
Reporter lindig View Status public  
Assigned To Tron
Priority normal Resolution fixed Platform
Status resolved   OS
Projection none   OS Version
ETA none Fixed in Version Product Version
  Product Build
Summary 0000172: panic in descend_into_subtype
Description :debug $ ./cparser --version
cparser 1.22.1(29ee522582b587ac9190b729c334bd493c856d70) using libFirm 1.22(0b8d13fbf864b415132201b24f72986911dc4e70)
:debug $ ./cparser -o foo foo.c
foo.c:32:35: warning: 'parameter bp1' is never read [-Wunused-parameter]
foo.c:54:14: warning: 'parameter argc' is unused [-Wunused-parameter]
foo.c:54:27: warning: 'parameter argv' is unused [-Wunused-parameter]
foo.c:26:13: warning: 'void failed(int)' defined but not used [-Wunused-function]
4 warning(s)
foo.c:29:25: error: code generation for flexible arrays initializers not supported
src/firm/ast2firm.c:3410: panic in descend_into_subtype: Cannot continue
Abort trap: 6
Steps To Reproduce
Additional Information The file was generated by my tool Quest that checks the implementation of calling conventions.
Tags No tags attached.
Attached Files c file icon foo.c [^] (1,395 bytes) 2016-01-18 17:31

- Relationships

-  Notes
(0000254)
lindig (reporter)
2016-01-18 17:33

Please say hi to Gregor ;-)
(0000255)
lindig (reporter)
2016-01-18 17:50

The problem can be reduced to this code (which is accepted by GCC):

static float b5[0][0] = {};

int main(void)
{
    return 0;
}
(0000256)
Tron (administrator)
2016-01-18 22:12

Fixed in cparser 19c3c517561119875a05ee6064f970e21daec475.

BTW: The link in your example is dead.

- Issue History
Date Modified Username Field Change
2016-01-18 17:31 lindig New Issue
2016-01-18 17:31 lindig File Added: foo.c
2016-01-18 17:33 lindig Note Added: 0000254
2016-01-18 17:50 lindig Note Added: 0000255
2016-01-18 22:12 Tron Note Added: 0000256
2016-01-18 22:12 Tron Assigned To => Tron
2016-01-18 22:12 Tron Reproducibility have not tried => always
2016-01-18 22:12 Tron Status new => resolved
2016-01-18 22:12 Tron Resolution open => fixed
2016-01-18 22:12 Tron Category unknown => semantic


Mantis 1.1.5[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker