[Bug c++/115251] New: [DR 1581] Conversion operator that is needed for constant evaluation not instantiated in requires-expression

2024-05-27 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115251 Bug ID: 115251 Summary: [DR 1581] Conversion operator that is needed for constant evaluation not instantiated in requires-expression Product: gcc Version: 15.0

[Bug c++/115187] [14/15 Regression] ICE when deleting temporary array

2024-05-23 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115187 --- Comment #5 from Mital Ashok --- PR94264 prevented the first version from being an issue in GCC13, but the second version struct X { int x[2]; }; void f() { delete X{}.x; } still crashed in older GCC versions. This isn't

[Bug c++/115187] New: ICE when deleting temporary array

2024-05-22 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115187 Bug ID: 115187 Summary: ICE when deleting temporary array Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/114977] New: C++20 parenthesized aggregate initialization copy-inits from {} instead of value-init

2024-05-07 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114977 Bug ID: 114977 Summary: C++20 parenthesized aggregate initialization copy-inits from {} instead of value-init Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug tree-optimization/114937] [11 regression] -ftree-vrp optimizes out range check before conditional increment

2024-05-03 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114937 --- Comment #3 from Mital Ashok --- My real code looks more like: void sat_inc(int& y) { if (y < __INT_MAX__) ++y; } template void f(int& x, F&&... functions) { int copy = x; (functions(copy), ...); if (copy > x)

[Bug tree-optimization/114937] New: [11 regression] -ftree-vrp optimizes out range check before conditional increment

2024-05-03 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114937 Bug ID: 114937 Summary: [11 regression] -ftree-vrp optimizes out range check before conditional increment Product: gcc Version: 11.4.0 Status: UNCONFIRMED

[Bug c++/114620] New: Pointer-to-member template argument which is the member of a base class is rejected

2024-04-06 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114620 Bug ID: 114620 Summary: Pointer-to-member template argument which is the member of a base class is rejected Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/114619] New: [14 regression] ICE with -fno-elide-constructors in C++14 mode for non-constant initializer in array new

2024-04-06 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114619 Bug ID: 114619 Summary: [14 regression] ICE with -fno-elide-constructors in C++14 mode for non-constant initializer in array new Product: gcc Version: 14.0 Status:

[Bug c++/68891] must use a typedef to declare a conversion to 'double (&)[3]'

2024-01-08 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68891 Mital Ashok changed: What|Removed |Added CC||mital at mitalashok dot co.uk --- Comment

[Bug c++/112908] New: __reference_{converts,constructs}_from_temporary checks for move constructor when binding prvalue to reference of the same type

2023-12-07 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112908 Bug ID: 112908 Summary: __reference_{converts,constructs}_from_temporary checks for move constructor when binding prvalue to reference of the same type Product: gcc

[Bug c++/112590] structural constexpr class fails to instantiate

2023-11-17 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112590 Mital Ashok changed: What|Removed |Added CC||mital at mitalashok dot co.uk ---

[Bug c++/112595] New: ICE on invalid code: Literal class NTTP aggregate initialized with self-referential pointer

2023-11-17 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112595 Bug ID: 112595 Summary: ICE on invalid code: Literal class NTTP aggregate initialized with self-referential pointer Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/112594] New: Non-type template parameter created with converting constructor sometimes has original type

2023-11-17 Thread mital at mitalashok dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112594 Bug ID: 112594 Summary: Non-type template parameter created with converting constructor sometimes has original type Product: gcc Version: 14.0 Status: UNCONFIRMED