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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107945
Brian Bi changed:
What|Removed |Added
CC||bbi5291 at gmail dot com
--- Comment #5
: 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
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.
: 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:
--
: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224
Brian Bi changed:
What|Removed |Added
CC||bbi5291 at gmail dot com
--- Comment #1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111750
Brian Bi changed:
What|Removed |Added
CC||bbi5291 at gmail dot com
--- Comment #2
11 matches
Mail list logo