++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Target Milestone: ---
libstdc++ does not give the following guarantee, while libc++ and MS STL can:
auto captureless = [](FILE *, void *, size_t) { return 0; };
static_assert(sizeof(std
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71954
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198
--- Comment #8 from Zhihao Yuan ---
(In reply to Jonathan Wakely from comment #7)
> (In reply to Zhihao Yuan from comment #5)
> > Encountered this today. In case I cannot show up when discussing LWG3486, my
> > use case is that C(in_place_type, a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #5
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Target Milestone: ---
The following -std=c++20 code fails to compile:
#include
struct B {
virtual ~B() = default;
};
struct D : B
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #11
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Target Milestone: ---
Created attachment 46213
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46213&action=edit
test case
https://godbolt.org/z
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84849
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #6
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Target Milestone: ---
#include
template
class A {};
// A() -> A<>;
int main()
{
auto x = A(); // #1
auto x2 = A{}; // #2
A y;// #3
}
#1 fails, #2 and #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70347
--- Comment #1 from Zhihao Yuan ---
In c++1y, c++14 modes, not c++11.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Target Milestone: ---
#include
//struct A {
union A {
int a = 3;
int b;
};
//};
int main() {
A c{};
std::cout << c.a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66735
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63192
--- Comment #4 from Zhihao Yuan ---
(In reply to Zhihao Yuan from comment #3)
> Confirmed, please fix. As the standardization of `std::as_const`, this bug
> becomes significant.
Never mind, I will create another bug report to demonstrate my iss
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63192
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #3
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Target Milestone: ---
libstdc++'s uniform_int_distribution is stateless, thus just
return _Dist(a, b)(_S_randint_engine());
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480
Zhihao Yuan changed:
What|Removed |Added
CC||lichray at gmail dot com
--- Comment #3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58403
--- Comment #9 from Zhihao Yuan ---
(In reply to Jonathan Wakely from comment #7)
> [...] It is unspecified whether
> "it += A::a" is an odr-use or not.
Well, it's true, but I guess the primary purpose of making
containers' iterator implementatio
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58403
--- Comment #5 from Zhihao Yuan ---
(In reply to Jonathan Wakely from comment #4)
> Although I see no harm in changing the library to take those arguments by
> value, the testcase is of course invalid.
Can you elaborate?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58403
--- Comment #2 from Zhihao Yuan ---
Created attachment 30807
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30807&action=edit
test case
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lichray at gmail dot com
Some __normal_iterator's operators take `const difference_type&`, which
triggers odr-use of its argument and results in a linker-error.
Both reverse_iterator and move_iterator take `difference_t
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48399
--- Comment #3 from Zhihao Yuan 2011-04-01 11:15:48
UTC ---
Fine. Sorry to disturbing you.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48399
Summary: gcc46 show error when initializing a static const
member with base class's constructor
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: major
Pri
22 matches
Mail list logo