[Bug c++/111113] Cannot define friend function of a local class in namespace scope

2023-08-23 Thread language.lawyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2022-01-07 Thread language.lawyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com

[Bug c++/51757] friend defined inside class and declared inside main linker error

2021-01-18 Thread language.lawyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com

[Bug c++/91618] template-id required to friend a function template, even for a qualified-id

2020-08-29 Thread language.lawyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91618 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com

[Bug c++/96593] New: No "declaration changes meaning" diagnostic for alias templates

2020-08-12 Thread language.lawyer at gmail dot com
diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: language.lawyer at gmail dot com Target Milestone: --- "A name N used in a class S shall refer to the same declaration in its context and wh

[Bug c++/96321] New: GCC accepts conversion-function-id after the keyword template

2020-07-25 Thread language.lawyer at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: language.lawyer at gmail dot com Target Milestone: --- struct S { template operator T() { return T(); } }; int i = S().template operator

[Bug c++/87208] dependent name resolution selects a function it should have NEVER considered

2020-06-23 Thread language.lawyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87208 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com

[Bug c++/93314] Invalid use of non-static data member causes ICE in gimplify_expr

2020-01-17 Thread language.lawyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314 --- Comment #1 from Language Lawyer --- GCC thinks that `char[S::m]` is VLA (because the lvalue-to-rvalue conversion on `S::m` lvalue doesn't look like a constant expression) and tries to move the evaluation of `sizeof(char[S::m])` to run time.

[Bug c++/93314] New: Invalid use of non-static data member causes ICE in gimplify_expr

2020-01-17 Thread language.lawyer at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: language.lawyer at gmail dot com Target Milestone: --- int main() { struct S { int m; }; return sizeof(char[S::m]); } $ g++ prog.cc

[Bug c++/90780] New: GCC looses ref-qualifiers

2019-06-07 Thread language.lawyer at gmail dot com
: unassigned at gcc dot gnu.org Reporter: language.lawyer at gmail dot com Target Milestone: --- The following code (inspired by http://wg21.link/p0172) using abominable = void() const volatile &&; struct s { abominable f; }; abom

[Bug c++/90321] New: [C++17] GCC allows structured binding (decomposition) of an object of type derived from a closure type

2019-05-02 Thread language.lawyer at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: language.lawyer at gmail dot com Target Milestone: --- The bug 78896 was fixed in r244909, so it is no longer possible to decompose a closure itself

[Bug rtl-optimization/90319] New: [C++17] aggregate initialization of base: ICE in assign_temp

2019-05-02 Thread language.lawyer at gmail dot com
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: language.lawyer at gmail dot com Target Milestone: --- This bug is similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90254, but here the base is movable. The following