Summary: | [4.6/4.7 Regression] ICE in build_unary_op, at c-typeck.c:3786 | ||
---|---|---|---|
Product: | gcc | Reporter: | etienne_lorrain |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jakub, jsm28 |
Priority: | P3 | Keywords: | ice-on-valid-code |
Version: | 4.6.0 | ||
Target Milestone: | 4.6.1 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2011-04-08 15:00:00 | |
Attachments: |
The file which produces the ICE
gcc46-pr48517.patch |
Description
etienne_lorrain
2011-04-08 14:26:33 UTC
Confirmed, reducing. Reduced testcase: unsigned is_valid_chgmode_keycode (unsigned short key) { static const unsigned short array[] = (const unsigned short []) { 0x0D2B }; const unsigned short *ptr = array; } Created attachment 23955 [details] gcc46-pr48517.patch Untested fix. Author: jakub Date: Tue Apr 12 06:43:12 2011 New Revision: 172299 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172299 Log: PR c/48517 * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to qualified type. * gcc.c-torture/compile/pr48517.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr48517.c Modified: trunk/gcc/c-typeck.c Author: jakub Date: Tue Apr 12 06:53:13 2011 New Revision: 172300 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172300 Log: PR c/48517 * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to qualified type. * gcc.c-torture/compile/pr48517.c: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/compile/pr48517.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/c-typeck.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog Fixed. |