[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-12 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #5 from Carlo Wood --- Hey Andrew :) You probably mean https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98752 But they are different in that I think that this report is invalid... See "discussion" here:

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #2 from Carlo Wood --- I meant `constexpr Symbol x;` inside main - with the same error.

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 Carlo Wood changed: What|Removed |Added Summary|wrong "error: ‘this’ is not |Possibly wrong "error:

[Bug c++/114311] New: wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread carlo at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- The following snippet: ``` template struct SymbolRef { }; struct Symbol { int const id_; consteval Symb

[Bug middle-end/50481] builtin to reverse the bit order

2022-10-25 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481 Carlo Wood changed: What|Removed |Added CC||carlo at gcc dot gnu.org --- Comment #8

[Bug c++/101405] New: internal compiler error: in reshape_init_class, at cp/decl.c:6483

2021-07-10 Thread carlo at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- Invalid code. struct A { int const a = 1; int const b = 2; }; struct B : A { using A::a; using A::b; int const c = 3; int

[Bug c++/91771] New: Optimization fails to inline final override.

2019-09-14 Thread carlo at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- Compiling the following code snippet: struct Base { int foo(int n) { return do_foo(n); } virtual int do_foo(int n) = 0; }; struct Derived : public Base { int do_foo(int n

[Bug c++/85282] CWG 727 (full specialization in non-namespace scope)

2019-09-08 Thread carlo at gcc dot gnu.org
||2019-09-08 CC||carlo at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Carlo Wood --- I ran into the same problem. I confirm this problem still exists in the current HEAD (10.0.0), as well as 9.x and 8

[Bug c++/66139] destructor not called for members of partially constructed anonymous struct/array

2017-05-05 Thread carlo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66139 Carlo Wood changed: What|Removed |Added CC||carlo at gcc dot gnu.org

[Bug libstdc++/80579] std::vector::reserve should not require T to be moveable.

2017-04-30 Thread carlo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80579 Carlo Wood changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/80579] New: std::vector::reserve should not require T to be moveable.

2017-04-30 Thread carlo at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- g++ 7.0.1 fails on #include struct B { B(B&&) = delete; }; std::vector v; int main() { v.reserve(8); } error: use of

[Bug c++/80521] New: Wrong line reported in error for missing template argument in friend class declaration.

2017-04-25 Thread carlo at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- Although similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8570 from 2002, I guess I'll report it again now

[Bug c++/70328] New: default generated destructors cause 'inlining failed' warnings.

2016-03-20 Thread carlo at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- I'm getting a warning for many many classes along of the lines: ../../../speech/src/xml/catalog_test.cpp:73:7: warning: inlining failed

[Bug libstdc++/65165] New: missing std::promise::set_value_at_thread_exit

2015-02-22 Thread carlo at gcc dot gnu.org
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Assuming en.cppreference.com is right, this member function should exist since C++11. See http://en.cppreference.com/w/cpp/thread/promise/set_value_at_thread_exit It exists/works in clang 3.5. I

[Bug libstdc++/65165] missing std::promise::set_value_at_thread_exit

2015-02-22 Thread carlo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65165 --- Comment #1 from Carlo Wood carlo at gcc dot gnu.org --- The same for std::promise::set_exception_at_thread_exit I guess.

[Bug c++/63263] New: friend declaration of template specialization of function gets confused when specialization was forward declared

2014-09-14 Thread carlo at gcc dot gnu.org
: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org The following code snippet should compile, but it doesn't. templatetypename T void f(T, float

[Bug c++/63263] friend declaration of function template specialization gets confused when specialization was forward declared.

2014-09-14 Thread carlo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63263 --- Comment #1 from Carlo Wood carlo at gcc dot gnu.org --- Guess the float isn't needed: templatetypename T void f(T) { T(1); } struct B; template void f(B) { } struct B { friend void fB(B); }; void g() { B b; f(b); }

[Bug c/48006] Inefficient optimization depends on builtin integer type of same size.

2011-04-12 Thread carlo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48006 Carlo Wood carlo at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c/48006] Inefficient optimization depends on builtin integer type of same size.

2011-04-12 Thread carlo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48006 Carlo Wood carlo at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c/48006] New: Inefficient optimization depends on builtin integer type of same size.

2011-03-06 Thread carlo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48006 Summary: Inefficient optimization depends on builtin integer type of same size. Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3