[Bug c++/108364] New: Construction from prvalue erroneously uses move-constructor

2023-01-10 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108364 Bug ID: 108364 Summary: Construction from prvalue erroneously uses move-constructor Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug c++/108588] __is_constructible returns wrong value for invalid (but non deleted) default constructor

2023-02-08 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108588 --- Comment #1 from Fedor Chelnokov --- According to this StackOverflow answer, the behavior of GCC is incorrect here: https://stackoverflow.com/a/75380301/7325599

[Bug c++/104000] Ordinary constructor cannot delegate to `consteval` constructor

2022-02-18 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104000 --- Comment #5 from Fedor Chelnokov --- Based on stackoverflow answer, a modified example was found with the delegation to consteval constructor: ``` struct A { int i = 0; consteval A() = default; A(const A&) = delete; A(i

[Bug c++/104661] New: Catching exception by const value when exception-object has lvalue-reference constructor

2022-02-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104661 Bug ID: 104661 Summary: Catching exception by const value when exception-object has lvalue-reference constructor Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/88165] error: default member initializer for 'A::B::m' required before the end of its enclosing class

2022-04-22 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88165 --- Comment #11 from Fedor Chelnokov --- Thanks a lot for the explanation!

[Bug c++/105350] New: False constructor warning in case of [[depreacated]] field in class

2022-04-22 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105350 Bug ID: 105350 Summary: False constructor warning in case of [[depreacated]] field in class Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/105407] New: std::construct_at during constant evaluation does not zero-initialize

2022-04-27 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105407 Bug ID: 105407 Summary: std::construct_at during constant evaluation does not zero-initialize Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/106599] New: Wrong copy elision in delegating to copy-constructor

2022-08-12 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106599 Bug ID: 106599 Summary: Wrong copy elision in delegating to copy-constructor Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug libstdc++/106695] New: Regression 11,12: Explicit copy constructor does not work for a parameter passed via std::async

2022-08-20 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106695 Bug ID: 106695 Summary: Regression 11,12: Explicit copy constructor does not work for a parameter passed via std::async Product: gcc Version: 12.1.0 Status: UNCONFIRMED

[Bug c++/106599] Wrong copy elision in delegating to copy-constructor

2022-08-22 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106599 --- Comment #4 from Fedor Chelnokov --- And if one deletes copy constructor of A: struct A { constexpr A() = default; constexpr A(const A&) = delete; constexpr A(int) : A(A()) {} }; A a(2); Then Clang rejects the program, b

[Bug c++/106968] New: ignored noexcept(false) in explicitly-defaulted functions

2022-09-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106968 Bug ID: 106968 Summary: ignored noexcept(false) in explicitly-defaulted functions Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/107124] New: Reference template parameter refers to a temporary object

2022-10-02 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107124 Bug ID: 107124 Summary: Reference template parameter refers to a temporary object Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/101670] Internal compiler error with concepts

2022-10-05 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101670 --- Comment #3 from Fedor Chelnokov --- A shorter example: template concept x = true; void foo(x auto) {} Online demo: https://godbolt.org/z/sT74G8crE

[Bug c++/107168] New: Wrong errors for concepts with default lambda not-type argument

2022-10-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107168 Bug ID: 107168 Summary: Wrong errors for concepts with default lambda not-type argument Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/103807] New: Unable to make template class instance with default parameter of lambda::function

2021-12-22 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103807 Bug ID: 103807 Summary: Unable to make template class instance with default parameter of lambda::function Product: gcc Version: 12.0 Status: UNCONFIRMED Severi

[Bug c++/103833] New: Overloaded static member function cannot be resolved unlike overloaded global function

2021-12-26 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103833 Bug ID: 103833 Summary: Overloaded static member function cannot be resolved unlike overloaded global function Product: gcc Version: 12.0 Status: UNCONFIRMED S

[Bug c++/103849] New: std::hash specializations with distinct concepts fails

2021-12-27 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103849 Bug ID: 103849 Summary: std::hash specializations with distinct concepts fails Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/103852] New: Alias template argument deduction is available in C++17 mode

2021-12-28 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103852 Bug ID: 103852 Summary: Alias template argument deduction is available in C++17 mode Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/103865] New: virtual function can have a requires clause

2021-12-30 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103865 Bug ID: 103865 Summary: virtual function can have a requires clause Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/103878] New: ThreadSanitizer: false report about data race

2021-12-31 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103878 Bug ID: 103878 Summary: ThreadSanitizer: false report about data race Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug c++/103884] New: ICE when calling static and non-static member function templates with the same parameter types and requires clause

2021-12-31 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103884 Bug ID: 103884 Summary: ICE when calling static and non-static member function templates with the same parameter types and requires clause Product: gcc Version:

[Bug sanitizer/103878] ThreadSanitizer: false report about data race

2021-12-31 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103878 --- Comment #3 from Fedor Chelnokov --- Bugreport for Clang/LLVM: https://github.com/llvm/llvm-project/issues/52942

[Bug c++/103783] Ambiguous overload between constrained static member and unconstrained non-static member

2022-01-01 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103783 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Comme

[Bug c++/103896] New: Label as value: object destructor is not called

2022-01-03 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103896 Bug ID: 103896 Summary: Label as value: object destructor is not called Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/103901] New: A lambda with a new type in its body cannot be defined inside template parameter list

2022-01-04 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103901 Bug ID: 103901 Summary: A lambda with a new type in its body cannot be defined inside template parameter list Product: gcc Version: 12.0 Status: UNCONFIRMED Se

[Bug c++/103913] New: Several variables declared in one declarator have distinct types

2022-01-04 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103913 Bug ID: 103913 Summary: Several variables declared in one declarator have distinct types Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/103927] New: ICE in a recursive class template

2022-01-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103927 Bug ID: 103927 Summary: ICE in a recursive class template Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/103929] New: False warning: no return statement in function returning non-void

2022-01-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103929 Bug ID: 103929 Summary: False warning: no return statement in function returning non-void Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/103953] New: Leak of coroutine return object

2022-01-09 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103953 Bug ID: 103953 Summary: Leak of coroutine return object Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ As

[Bug c++/103963] New: Coroutine return type must not be copy- or move-constructible

2022-01-10 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103963 Bug ID: 103963 Summary: Coroutine return type must not be copy- or move-constructible Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104000] New: Ordinary constructor cannot delegate to `consteval` constructor

2022-01-12 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104000 Bug ID: 104000 Summary: Ordinary constructor cannot delegate to `consteval` constructor Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/88165] error: default member initializer for 'A::B::m' required before the end of its enclosing class

2022-01-12 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88165 --- Comment #7 from Fedor Chelnokov --- This struct definition: ``` struct A { struct B { int i = 0; B() {} }; A(B = {}); }; ``` is accepted by GCC, but another one ({} replaced with = default) is not: ``` struct C {

[Bug c++/104043] New: Non-type template specialization with another type is accepted but ignored

2022-01-15 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104043 Bug ID: 104043 Summary: Non-type template specialization with another type is accepted but ignored Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: nor

[Bug c++/104055] New: Temporary with conteval constructor is ignored

2022-01-16 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104055 Bug ID: 104055 Summary: Temporary with conteval constructor is ignored Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/104087] New: Invoking a consteval constructor with new

2022-01-18 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104087 Bug ID: 104087 Summary: Invoking a consteval constructor with new Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/104111] New: Concept evaluation depends on context where it was first checked

2022-01-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 Bug ID: 104111 Summary: Concept evaluation depends on context where it was first checked Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104111] Concept evaluation depends on context where it was first checked

2022-01-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 --- Comment #1 from Fedor Chelnokov --- Sorry, related discussion: https://stackoverflow.com/q/53263299/7325599

[Bug c++/104141] New: Access to private member function from requires-clause accepted

2022-01-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104141 Bug ID: 104141 Summary: Access to private member function from requires-clause accepted Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104141] nested requires statement causes access to private member function

2022-01-21 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104141 --- Comment #4 from Fedor Chelnokov --- In ``` template concept t = requires{ A::f(); }; ``` A::f() does not depend on template parameter, so the rules here are somewhat different than in T::f(). A possible answer: https://stackoverflow.com/a/

[Bug c++/104141] nested requires statement causes access to private member function

2022-01-21 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104141 --- Comment #6 from Fedor Chelnokov --- I agree that Clang behavior here might be wrong. Submitted https://github.com/llvm/llvm-project/issues/53334

[Bug c++/104000] Ordinary constructor cannot delegate to `consteval` constructor

2022-01-21 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104000 --- Comment #4 from Fedor Chelnokov --- If we take MSVC into consideration, then it rejects ``` struct A { consteval A() = default; A(int) : A() {} }; ``` which GCC accepts. So there is a divergence with MSVC as well.https://gcc.g

[Bug c++/104192] New: Uninitialized object read is not detected in a constant expression

2022-01-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104192 Bug ID: 104192 Summary: Uninitialized object read is not detected in a constant expression Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104193] New: Valid function template instantiation rejected

2022-01-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104193 Bug ID: 104193 Summary: Valid function template instantiation rejected Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/104204] New: Ambiguity error for out of class definition of member function template in the presence of a member function of the same name

2022-01-24 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104204 Bug ID: 104204 Summary: Ambiguity error for out of class definition of member function template in the presence of a member function of the same name Product: gcc

[Bug c++/104204] Ambiguity error for out of class definition of member function template in the presence of a member function of the same name

2022-01-24 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104204 --- Comment #2 from Fedor Chelnokov --- Are you sure that this is a duplicate? Bug 39270 is about explicit instantiation that is erroneously reported by GCC as specialization. And this bug is about rejection of real explicit specialization in sp

[Bug c++/104242] New: Class with constructor from std::any is not copyable

2022-01-26 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104242 Bug ID: 104242 Summary: Class with constructor from std::any is not copyable Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug c++/104242] Class with constructor from std::any is not copyable

2022-01-26 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104242 --- Comment #1 from Fedor Chelnokov --- The error message is invalid use of incomplete type 'std::__conditional_t, std::__not_ > >' {aka 'struct std::is_copy_constructible'} ...

[Bug c++/104266] New: Temporaries with protected destructor are erroneously permitted

2022-01-28 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266 Bug ID: 104266 Summary: Temporaries with protected destructor are erroneously permitted Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104282] New: Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 Bug ID: 104282 Summary: Copy elision when initializing a base-class subobject with aggregate initialization Product: gcc Version: 12.0 Status: UNCONFIRMED Seve

[Bug c++/88417] partial specialization of static template variable inside class template gives wrong result

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88417 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Commen

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #3 from Fedor Chelnokov --- Both Clang and GCC do not change their output either with `-std=c++20` or with `-std=c++17` options. And both reject the program with -std=c++14`.

[Bug c++/104266] Temporaries with protected destructor are erroneously permitted

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266 --- Comment #4 from Fedor Chelnokov --- In your last example, I think Clang is right, because `Y` is not an aggregate in C++11 due to the presence of default member initializer. And it becomes an aggregate only in C++14.

[Bug libstdc++/92770] std::unordered_map requires both T and U to be fully declared

2022-01-30 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92770 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Commen

[Bug c++/104305] New: Partial specialization with parameter pack is ignored

2022-01-31 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104305 Bug ID: 104305 Summary: Partial specialization with parameter pack is ignored Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/104383] New: User-defined conversion is preferred over standard-one

2022-02-04 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104383 Bug ID: 104383 Summary: User-defined conversion is preferred over standard-one Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/83264] std::initializer_list with a single element selects the wrong overload

2022-02-05 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83264 --- Comment #9 from Fedor Chelnokov --- There is a related discussion: https://stackoverflow.com/a/47618530/7325599 And it is noted there that according to [over.ics.rank]/2 just before [over.ics.rank]/3: — a standard conversion sequence is a be

[Bug c++/104418] New: Error inheriting base class constructors by using-declaration

2022-02-07 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104418 Bug ID: 104418 Summary: Error inheriting base class constructors by using-declaration Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104418] Error inheriting base class constructors by using-declaration

2022-02-07 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104418 --- Comment #2 from Fedor Chelnokov --- My personal feeling is that if a compiler accepts `B b(i);` then it must accept `C c(i);` as well because of [namespace.udecl] p13: > Constructors that are named by a using-declaration are treated as thou

[Bug c++/104418] Error inheriting base class constructors by using-declaration

2022-02-07 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104418 --- Comment #4 from Fedor Chelnokov --- I think `using B::B;` is not the same as redefining each constructor with the explicit call of base class constructor `C(int a) : B{(int)a}{}`. Please consider this example proving it: ``` struct A {

[Bug c++/104418] [C++17+] Error inheriting base class constructors by using-declaration

2022-02-08 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104418 --- Comment #7 from Fedor Chelnokov --- Thanks. I submitted Clang bug: https://github.com/llvm/llvm-project/issues/53653

[Bug c++/104490] New: Cannot inherit consteval constructor

2022-02-10 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104490 Bug ID: 104490 Summary: Cannot inherit consteval constructor Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/104512] New: [c++20] consteval constructor does not need to initialize all data members

2022-02-12 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104512 Bug ID: 104512 Summary: [c++20] consteval constructor does not need to initialize all data members Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: nor

[Bug c++/103092] New: Non-throwing function pointer can point to a throwing-function in C++14

2021-11-05 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103092 Bug ID: 103092 Summary: Non-throwing function pointer can point to a throwing-function in C++14 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/103110] New: templated operator auto is ignored

2021-11-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103110 Bug ID: 103110 Summary: templated operator auto is ignored Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/103110] templated operator auto is ignored

2021-11-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103110 --- Comment #2 from Fedor Chelnokov --- I think the program must be equivalent to ``` struct S { operator auto() const { return 2; } }; int main() { S s; [[maybe_unused]] int d = s; } ``` and `auto` here is deduced from `return 2` a

[Bug c++/103110] templated operator auto is ignored

2021-11-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103110 --- Comment #4 from Fedor Chelnokov --- Actually you changed the example, and if T is void, then T{} is ill-formed. But I do not see how it relates to the original program.

[Bug c++/103110] templated operator auto is ignored

2021-11-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103110 --- Comment #6 from Fedor Chelnokov --- Thanks for the explanation! I reported Clang bug: https://bugs.llvm.org/show_bug.cgi?id=52434

[Bug c++/103347] New: Non-static data member initialization is erroneously allowed in C++03 mode

2021-11-21 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103347 Bug ID: 103347 Summary: Non-static data member initialization is erroneously allowed in C++03 mode Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: nor

[Bug c++/85428] constexpr pointer equality comparison not considered constant expression

2021-11-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85428 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Commen

[Bug c++/103402] New: Compile-time less/more comparison of a pointer vs nullptr

2021-11-24 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103402 Bug ID: 103402 Summary: Compile-time less/more comparison of a pointer vs nullptr Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/103426] New: Acceptance of invalid template specialization in a namespace not enclosing the specialized template

2021-11-25 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103426 Bug ID: 103426 Summary: Acceptance of invalid template specialization in a namespace not enclosing the specialized template Product: gcc Version: 12.0 Status: UNCONFIRME

[Bug c++/103478] New: Possible regression in constexpr processing

2021-11-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103478 Bug ID: 103478 Summary: Possible regression in constexpr processing Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug c++/103552] New: Compile-time comparison of subobject and parent class

2021-12-04 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103552 Bug ID: 103552 Summary: Compile-time comparison of subobject and parent class Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/103555] New: out-of-line definition of class template method fails in the presence of type named the same as template argument

2021-12-04 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103555 Bug ID: 103555 Summary: out-of-line definition of class template method fails in the presence of type named the same as template argument Product: gcc Version: 1

[Bug c++/103659] New: Declared function template can be deleted later

2021-12-10 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103659 Bug ID: 103659 Summary: Declared function template can be deleted later Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/103689] New: Overriding spaceship operator when parent class does not define spaceship operator for itself

2021-12-13 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103689 Bug ID: 103689 Summary: Overriding spaceship operator when parent class does not define spaceship operator for itself Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/102097] New: Error in selecting more specialized function in case of ambiguity

2021-08-27 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102097 Bug ID: 102097 Summary: Error in selecting more specialized function in case of ambiguity Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102116] New: structured binding is returned from a function as rvalue in C++20 mode

2021-08-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102116 Bug ID: 102116 Summary: structured binding is returned from a function as rvalue in C++20 mode Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102156] New: `cannot call constructor` error during member access

2021-09-01 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102156 Bug ID: 102156 Summary: `cannot call constructor` error during member access Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug c++/102170] New: False accept of class member access using qualified-id in case of ambiguity

2021-09-01 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102170 Bug ID: 102170 Summary: False accept of class member access using qualified-id in case of ambiguity Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: no

[Bug c++/102116] structured binding is returned from a function as rvalue in C++20 mode

2021-09-01 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102116 --- Comment #1 from Fedor Chelnokov --- Sorry, what do you mean by "wrong-code" tag? The code example is for sure valid. It may be only unclear which one of two A-constructors must be called.

[Bug c++/102116] structured binding is returned from a function as rvalue in C++20 mode

2021-09-02 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102116 --- Comment #3 from Fedor Chelnokov --- Thanks a lot, it is clear now.

[Bug c++/102175] New: Error comparing the pointers on static class fields in static_assert

2021-09-02 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102175 Bug ID: 102175 Summary: Error comparing the pointers on static class fields in static_assert Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102184] New: Explicit template instantiation is wrongly considered as specialization

2021-09-02 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102184 Bug ID: 102184 Summary: Explicit template instantiation is wrongly considered as specialization Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102194] New: Incorrect explicit instantiation of constexpr variable accepted

2021-09-03 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102194 Bug ID: 102194 Summary: Incorrect explicit instantiation of constexpr variable accepted Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102208] New: Acceptance of invalid decltype(auto) in the default operator <=>

2021-09-05 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102208 Bug ID: 102208 Summary: Acceptance of invalid decltype(auto) in the default operator <=> Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102213] New: Incorrect executable produced from valid input code with virtual consteval

2021-09-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102213 Bug ID: 102213 Summary: Incorrect executable produced from valid input code with virtual consteval Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: nor

[Bug c++/102251] New: Valid code is rejected in ternary operator with unique conversion

2021-09-09 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102251 Bug ID: 102251 Summary: Valid code is rejected in ternary operator with unique conversion Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102367] New: Types may be defined in `decltype` or `sizeof` expressions in C++20

2021-09-16 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102367 Bug ID: 102367 Summary: Types may be defined in `decltype` or `sizeof` expressions in C++20 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102407] New: Ambiguity is not reported in case of separate inheritance of `<` and `<=>` operators

2021-09-20 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102407 Bug ID: 102407 Summary: Ambiguity is not reported in case of separate inheritance of `<` and `<=>` operators Product: gcc Version: 12.0 Status: UNCONFIRMED Sev

[Bug c++/102423] New: False accept of virtual methods with deduced return type

2021-09-21 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102423 Bug ID: 102423 Summary: False accept of virtual methods with deduced return type Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prio

[Bug c++/102465] New: Inaccessible operator == breaks child class with spaceship operator

2021-09-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102465 Bug ID: 102465 Summary: Inaccessible operator == breaks child class with spaceship operator Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102465] Inaccessible operator == breaks child class with spaceship operator

2021-09-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102465 --- Comment #2 from Fedor Chelnokov --- I believe PR 97934 is not much related, since the code there is processed the same by all compilers. And here GCC is the only one showing the error.

[Bug c++/97934] Adding an operator== breaks implicit operator== generation from defaulted <=>

2021-09-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97934 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Commen

[Bug c++/102468] New: False acceptance of invalid `using Parent::Grandparent`

2021-09-23 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102468 Bug ID: 102468 Summary: False acceptance of invalid `using Parent::Grandparent` Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c++/102551] New: Failing compile-time comparison of std::type_info addresses

2021-10-01 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102551 Bug ID: 102551 Summary: Failing compile-time comparison of std::type_info addresses Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/102603] New: Compile-time evaluation of indirection via dangling pointer is not rejected

2021-10-05 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102603 Bug ID: 102603 Summary: Compile-time evaluation of indirection via dangling pointer is not rejected Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: no

[Bug c++/102635] New: Wrong rejection of function default argument value depending on argument name

2021-10-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102635 Bug ID: 102635 Summary: Wrong rejection of function default argument value depending on argument name Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug c++/101344] [11/12 Regression] braced-init-list not supported in an aggregate deduction

2021-10-06 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101344 --- Comment #8 from Fedor Chelnokov --- Thanks! Related discussion: https://stackoverflow.com/q/67280884/7325599

[Bug c++/102660] New: Valid template default parameter of a friend function is rejected

2021-10-09 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102660 Bug ID: 102660 Summary: Valid template default parameter of a friend function is rejected Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

  1   2   3   >