[Bug c++/87275] New: unsequenced writes not diagnosed in constant expression

2018-09-10 Thread bbi5291 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bbi5291 at gmail dot com Target Milestone: --- An expression fails to be a constant expression if it contains UB. The code below contains a function whose evaluation results in UB when called

[Bug c++/77465] New: rejected C-style cast involving casting away constness from result of conversion operator

2016-09-02 Thread bbi5291 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bbi5291 at gmail dot com Target Milestone: --- The following code should compile, but does not. The Standard says that a C-style cast can perform the conversion

[Bug c++/61683] New: decltype-specifier not accepted as mem-initializer-id

2014-07-02 Thread bbi5291 at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bbi5291 at gmail dot com $ cat main.cpp struct A {}; A a; struct B : A { B(): decltype(a)() {} }; int main() {} $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64

[Bug c++/44731] New: Return value optimization produces inaccurate debug info

2010-06-30 Thread bbi5291 at gmail dot com
ty: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bbi5291 at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44731

[Bug c++/107945] static constexpr incomplete (depedent) data member of a class template and in-member initialized incorrectly accepted

2024-04-02 Thread bbi5291 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107945 Brian Bi changed: What|Removed |Added CC||bbi5291 at gmail dot com --- Comment #5

[Bug c++/110774] New: Ambiguous partial ordering with non-dependent function parameter type

2023-07-21 Thread bbi5291 at gmail dot com via Gcc-bugs
: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bbi5291 at gmail dot com Target Milestone: --- With `g++ -std=c++2b`, the following is rejected: --- template struct A { typedef char* type

[Bug c++/110774] Ambiguous partial ordering with non-dependent function parameter type and nullptr

2023-07-21 Thread bbi5291 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110774 --- Comment #5 from Brian Bi --- Partial ordering is different from partial specialization. Partial ordering selects a best viable function in certain cases where two viable functions are both instantiated from templates.

[Bug c++/110785] New: Incorrect return type deduction for const auto with no return statement

2023-07-23 Thread bbi5291 at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bbi5291 at gmail dot com Target Milestone: --- With `g++ -std=c++2b` the following is rejected: --- const auto f() { } const void (*fp)() = &f; --- with error message: --

[Bug libstdc++/111826] New: __cpp_lib_format should be 202110, not 202106

2023-10-15 Thread bbi5291 at gmail dot com via Gcc-bugs
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: bbi5291 at gmail dot com Target Milestone: --- libstdc++ 13.1 supports std::format including P2372 and P2418, which were adopted in Oct 2021 and bumped the feature test macro to 202110L. But libstdc++ still defines

[Bug middle-end/109224] Wmismatched-new-delete false positive with coroutines

2024-07-03 Thread bbi5291 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 Brian Bi changed: What|Removed |Added CC||bbi5291 at gmail dot com --- Comment #1

[Bug tree-optimization/111750] Spurious -Warray-bounds warning when using member function pointers

2025-03-04 Thread bbi5291 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111750 Brian Bi changed: What|Removed |Added CC||bbi5291 at gmail dot com --- Comment #2