[Bug c++/98163] New: ICE symtab_node::verify failed, auto& NTTP specialized with same entity but different type.

2020-12-06 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98163 Bug ID: 98163 Summary: ICE symtab_node::verify failed, auto& NTTP specialized with same entity but different type. Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/97645] Rejects valid subscript expression on array of unknown bound in constant expression

2020-12-05 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97645 --- Comment #2 from Lénárd Szolnoki --- (In reply to Lénárd Szolnoki from comment #0) > This was possibly impossible prior to C++20 to subscript an array of unknown > bound in constexpr context. As of P0388 conversion from T[N] to T[] can >

[Bug c++/98163] ICE symtab_node::verify failed, auto& NTTP specialized with same entity but different type.

2020-12-07 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98163 --- Comment #4 from Lénárd Szolnoki --- Other example in the same spirit, but not using array of unknown bound: ``` template struct S {}; template void foo(T) {} int i; constexpr const int& iref = i; template void foo(S); template void

[Bug c++/98326] New: ICE: in create_tmp_var, at gimple-expr.c:482, converting stateless generic-lambda to function pointer

2020-12-16 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98326 Bug ID: 98326 Summary: ICE: in create_tmp_var, at gimple-expr.c:482, converting stateless generic-lambda to function pointer Product: gcc Version: 10.2.0

[Bug c++/98419] New: wrong code when destructor of local variable modifies returned object

2020-12-22 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98419 Bug ID: 98419 Summary: wrong code when destructor of local variable modifies returned object Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/98419] wrong code when destructor of local variable modifies returned object

2020-12-22 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98419 --- Comment #2 from Lénárd Szolnoki --- This is probably invalid, I wasn't aware of http://eel.is/c++draft/class.temporary#3 > When an object of class type X is passed to or returned from a function, if X > has at least one eligible copy or

[Bug c++/97645] New: Rejects valid subscript expression on array of unknown bound in constant expression

2020-10-30 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97645 Bug ID: 97645 Summary: Rejects valid subscript expression on array of unknown bound in constant expression Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/97643] New: Accepts invalid qualification conversion involving array of unknown bound [P0388]

2020-10-30 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97643 Bug ID: 97643 Summary: Accepts invalid qualification conversion involving array of unknown bound [P0388] Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/97647] New: Accepts undefined delete expression in constant expression

2020-10-30 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97647 Bug ID: 97647 Summary: Accepts undefined delete expression in constant expression Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/97648] New: Rejects valid direct initialization from prvalue (private destructor)

2020-10-30 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97648 Bug ID: 97648 Summary: Rejects valid direct initialization from prvalue (private destructor) Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/86373] Destructor shall not be instantiated in C++17 mode for prvalue

2020-10-30 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86373 Lénárd Szolnoki changed: What|Removed |Added CC||leni536 at gmail dot com --- Comment

[Bug c++/100189] New: rejects valid conditional operators involving conversions to arrays of unknown bound (P0388)

2021-04-21 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100189 Bug ID: 100189 Summary: rejects valid conditional operators involving conversions to arrays of unknown bound (P0388) Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c/103343] Invalid codegen when comparing pointer to one past the end and then dereferencing that pointer

2021-11-22 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103343 --- Comment #4 from Lénárd Szolnoki --- A complete program example: f.h: ``` #pragma once extern int x[1]; extern int y; int f(int* p, int* q); ``` f.cpp: ``` #include "f.h" int f(int* p, int* q) { *q = y; if (p == (x + 1)) {

[Bug c++/103333] [accepts-invalid] function template argument deduction for incompatible 'transformed A' / 'deduced A' pair

2021-11-22 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 --- Comment #1 from Lénárd Szolnoki --- This can be turned into wrong-code. C++11 example without includes: ``` template struct enable_if {}; template struct enable_if { using type = T; }; template using enable_if_t = typename

[Bug c++/101486] New: Rejects valid qualification conversion involving array of unknown bound in function template argument [P0388]

2021-07-17 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101486 Bug ID: 101486 Summary: Rejects valid qualification conversion involving array of unknown bound in function template argument [P0388] Product: gcc Version: 12.0 Status:

[Bug c++/111440] New: wrong-code for ternary with reference-compatible arguments

2023-09-17 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111440 Bug ID: 111440 Summary: wrong-code for ternary with reference-compatible arguments Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/111440] wrong-code for ternary with reference-compatible arguments due to C++ defect report 2352

2023-09-17 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111440 --- Comment #3 from Lénárd Szolnoki --- Note that GCC seems to implement CWG2352 outside of ternary operators. https://godbolt.org/z/rnMcPqE7b ``` template void foo(); bool bar() { int * ptr = nullptr; const int * const = ptr;

[Bug c++/111286] New: ICE on functional cast to const array reference

2023-09-04 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111286 Bug ID: 111286 Summary: ICE on functional cast to const array reference Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/111776] New: ICE on delete expression with multiple viable destroying operator delete

2023-10-11 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111776 Bug ID: 111776 Summary: ICE on delete expression with multiple viable destroying operator delete Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity:

[Bug c++/111776] ICE on delete expression with multiple viable destroying operator delete

2023-10-13 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111776 --- Comment #2 from Lénárd Szolnoki --- Same ICE without destroying delete: ``` struct A { void operator delete(void *); }; struct B { void operator delete(void *); }; struct C : A, B { using A::operator delete; using

[Bug c/102989] Implement C2x's n2763 (_BitInt)

2023-04-09 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 Lénárd Szolnoki changed: What|Removed |Added CC||leni536 at gmail dot com --- Comment

[Bug c++/106371] Bogus narrowing conversion reported due to bitfield

2023-12-19 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106371 Lénárd Szolnoki changed: What|Removed |Added CC||leni536 at gmail dot com --- Comment

[Bug c++/111776] ICE on delete expression with multiple viable destroying operator delete

2023-11-15 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111776 --- Comment #3 from Lénárd Szolnoki --- The C++ standard currently doesn't specify what the behavior of these program snippets are. This is CWG2805. https://cplusplus.github.io/CWG/issues/2805.html

[Bug middle-end/114877] [11/12/13/14/15 Regression] wrong-code for frexp(NAN, )

2024-04-30 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114877 --- Comment #3 from Lénárd Szolnoki --- (In reply to Richard Biener from comment #2) > The standard says the results are unspecified, it doesn't say *p is written > to, > so I'm not sure there's a bug here. C17 (N2176) says in the library

[Bug c/114877] New: wrong-code for frexp(NAN, )

2024-04-28 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114877 Bug ID: 114877 Summary: wrong-code for frexp(NAN, ) Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c