Bug 84291 - Internal compiler error: in tree_to_uhwi, at tree.h:4128
Summary: Internal compiler error: in tree_to_uhwi, at tree.h:4128
Status: RESOLVED DUPLICATE of bug 84290
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 7.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-08 16:42 UTC by xvl5190
Modified: 2018-02-08 16:44 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xvl5190 2018-02-08 16:42:41 UTC
Test case:

/* PR c/81231 */ /* { dg-do compile } */ /* { dg-options "" : \ \ \ ina + 1 + i + 1) + 1;} */
enum E;
void foo(void) {
  __atomic_load_n((enum E * ) 0, 0); /* { dg-error "incompatible" } */
  __atomic_load_n((enum X * ) 0, 0); /* { dg-error "incompatible" } */
}
Comment 1 Marek Polacek 2018-02-08 16:44:57 UTC
.

*** This bug has been marked as a duplicate of bug 84290 ***