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

            Bug ID: 126477
           Summary: Error: size of array exceeds maximum object size
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eczbek.void at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/4b39Paj61

These are clearly the same number.

```
int main(){new char[9223372036854775807];}
```

```
<source>: In function 'int main()':
<source>:1:40: error: size '9223372036854775807' of array exceeds maximum
object size '9223372036854775807'
    1 | int main(){new char[9223372036854775807];}
      |                                        ^
```
  • [Bug c++/126477] New: Error: siz... eczbek.void at gmail dot com via Gcc-bugs

Reply via email to