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

            Bug ID: 111169
           Summary: ICE on auto with may_alias attribute
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stevenxia990430 at gmail dot com
  Target Milestone: ---

The following program reports an internal compiler error. Failed on gcc-trunk. 

To quickly reproduce: https://gcc.godbolt.org/z/4z81xq5qP
```
int main() {
    auto __attribute__((may_alias)) res = 0; // changing auto to int compiles
successfully
}
```

note that changing auto to int compiles successfully. Also this code compiles
successfully on clang trunk.
  • [Bug c++/111169] New: ICE on... stevenxia990430 at gmail dot com via Gcc-bugs

Reply via email to