[Bug c++/98150] Segfault from statement expression in lambda noexcept

2020-12-04 Thread ndkrempel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98150 --- Comment #2 from Nick Krempel --- Realised it doesn't need C++20 and was able to repro back in gcc 6.1 too.

[Bug c++/98150] Segfault from statement expression in lambda noexcept

2020-12-04 Thread ndkrempel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98150 --- Comment #1 from Nick Krempel --- The following slightly simpler code also repros the issue: int main() { []()noexcept(({constexpr int&=1;})); }

[Bug c++/98150] New: Segfault from statement expression in lambda noexcept

2020-12-04 Thread ndkrempel at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ndkrempel at gmail dot com Target Milestone: --- The following code produces a segfault in gcc versions 8.1 up to 10.2 and trunk (using -std=c++2a or -std=c++20): int main() { []()noexcept(noexcept(({constexpr

[Bug c++/94264] New: Array-to-pointer conversion not performed on array prvalues

2020-03-22 Thread ndkrempel at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ndkrempel at gmail dot com Target Milestone: --- I think the most clearcut example is: int main() { using T = int[]; T{1, 2} == nullptr; } This compiles fine with clang

[Bug libstdc++/90934] std::vector self-move-insert yields incorrect result

2019-06-19 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90934 --- Comment #4 from Nick Krempel --- Thanks, accepted.

[Bug libstdc++/90934] std::vector self-move-insert yields incorrect result

2019-06-19 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90934 --- Comment #2 from Nick Krempel --- I believe the same issue afflicts libc++, but not MSVC's implementation.

[Bug libstdc++/90934] std::vector self-move-insert yields incorrect result

2019-06-19 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90934 --- Comment #1 from Nick Krempel --- (The same buggy behavior is seen with "emplace" instead of "insert".)

[Bug libstdc++/90934] New: std::vector self-move-insert bug

2019-06-19 Thread ndkrempel at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ndkrempel at gmail dot com Target Milestone: --- Inserting into a vector with an rvalue reference to an item already in the vector produces incorrect results (specifically when inserting prior to the existing location and when

[Bug c++/90546] [9/10 Regression] Incorrect template argument deduction for conversion functions

2019-05-21 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546 --- Comment #4 from Nick Krempel --- Here's one way to turn it into a test case which fails to compile: struct Foo {}; void test(const Foo&) {} Foo f; struct Bar { template operator T&&() = delete; }; template<> Bar::operator const Foo&&() {

[Bug c++/61663] [DR 976] Deduction for const T& conversion functions

2019-05-20 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61663 Nick Krempel changed: What|Removed |Added CC||ndkrempel at gmail dot com --- Comment

[Bug c++/90546] [9.1 regression] Incorrect template argument deduction for conversion functions

2019-05-20 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546 --- Comment #2 from Nick Krempel --- However it's also worth noting that if you take the original snippet and change the declaration of "test" to accept a const rvalue reference instead: "void test(const Foo&&);", then gcc 9.1 (and all other gcc

[Bug c++/90546] [9.1 regression] Incorrect template argument deduction for conversion functions

2019-05-20 Thread ndkrempel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546 --- Comment #1 from Nick Krempel --- My interpretation of the standard didn't take into account the reference to http://eel.is/c++draft/over.match.ref when determining the type A. It says that A will be "lvalue reference to cv2 T2 ... where cv1

[Bug c++/90546] New: [9.1 regression] Incorrect template argument deduction for conversion functions

2019-05-20 Thread ndkrempel at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ndkrempel at gmail dot com Target Milestone: --- The following code deduces T = Foo using gcc 9.1, whereas gcc 8.3 (and clang 7 up) deduced T = const Foo. My reading

[Bug c++/89548] New: reinterpret_cast treats xvalue as prvalue

2019-03-01 Thread ndkrempel at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ndkrempel at gmail dot com Target Milestone: --- The following program fails to compile (with -std= any of c++11, c++14, c++17, c++2a): int main() { reinterpret_cast(static_cast(0)); } The error reported is: gcc

[Bug c++/70570] New: Assembler error "symbol already defined" from nested lambdas and function-static variable

2016-04-06 Thread ndkrempel at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ndkrempel at gmail dot com Target Milestone: --- Created attachment 38209 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38209=edit Mini

[Bug c++/55120] New: Inaccessible virtual base constructor does not prevent generation of default constructor

2012-10-29 Thread ndkrempel at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55120 Bug #: 55120 Summary: Inaccessible virtual base constructor does not prevent generation of default constructor Classification: Unclassified Product: gcc Version: 4.7.0

[Bug c++/55120] Inaccessible virtual base constructor does not prevent generation of default constructor

2012-10-29 Thread ndkrempel at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55120 --- Comment #1 from Nick Krempel ndkrempel at gmail dot com 2012-10-29 16:08:49 UTC --- Not so clear this is a bug, as the default constructor for D could be generated in the following form: struct D : B { D() : B(), ::V

[Bug c++/55120] Inaccessible virtual base constructor does not prevent generation of default constructor

2012-10-29 Thread ndkrempel at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55120 --- Comment #4 from Nick Krempel ndkrempel at gmail dot com 2012-10-29 22:41:48 UTC --- I think the standard is unclear on this. That defect report has been queried by experts. It comes down to something subtle about how the generated