[Bug c++/86949] New: gcc generate an error because delete operator is private when it isn't needed

2018-08-14 Thread tyker at outlook dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- in this code: #include struct X { X() noexcept { } private: static void operator delete(void*); }; int main

[Bug c++/90814] New: gcc accept invalid constexpr defaulted constructor

2019-06-10 Thread tyker at outlook dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- with gcc, the following code doesn't emit an error if INCORRECT is set. struct A { A() {} }; template struct D : A { #ifdef INCORRECT int& r; #endif }; struct B {

[Bug c++/90210] New: [C++17] CTAD forbidding explicit deduction guide for copy-list-initialization

2019-04-23 Thread tyker at outlook dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- gcc currently allows the following code: template struct tuple { tuple(T); }; template explicit tuple(T t) -> tuple; tupl

[Bug c++/91538] New: ICE with generic lambda.

2019-08-24 Thread tyker at outlook dot com
: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- the following code make gcc trunk crash void f() { auto l = [](auto... args, decltype(args)...){}; l(0); } https://godbolt.org/z/kjwbcW

[Bug c++/91768] New: gcc try to resolve member of template parameter too soon

2019-09-14 Thread tyker at outlook dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- the following code is valid according to clang, msvc and icc but not gcc: template struct A { int test(T* Ptr) { return Ptr->type::t

[Bug c++/92073] New: references/pointers to thread_local are not constant expressions

2019-10-11 Thread tyker at outlook dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- currently gcc accepts the folowing: ``` template struct A {}; static thread_local int b; A a; ``` this is not valid. http://eel.is/c

[Bug c++/93633] New: ICE on consteval virtual

2020-02-08 Thread tyker at outlook dot com
: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- I know that consteval virtual is not yet supported. but not crashing seems like that bare minimum. gcc trunk currently crashes on the following code. struct A { consteval virtual int f