This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/84291] New: Internal compiler error: in tree_to_uhwi, at tree.h:4128


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84291

            Bug ID: 84291
           Summary: Internal compiler error: in tree_to_uhwi, at
                    tree.h:4128
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xvl5190 at psu dot edu
  Target Milestone: ---

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" } */
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]