[Bug c++/108290] New: QoI: bind_front captureless lambda is too big

2023-01-04 Thread lichray at gmail dot com via Gcc-bugs
++ 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

[Bug c++/71954] template partial specialization for constexpr error

2022-07-30 Thread lichray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71954 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #5

[Bug c++/97198] __is_constructible(int[], int) should return true

2022-03-14 Thread lichray at gmail dot com via Gcc-bugs
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,

[Bug c++/97198] __is_constructible(int[], int) should return true

2022-03-11 Thread lichray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #5

[Bug c++/104653] New: Derived class looks for a definition of its inherited constexpr virtual destructor

2022-02-22 Thread lichray at gmail dot com via Gcc-bugs
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

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2020-02-22 Thread lichray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #11

[Bug c++/90190] New: [8/9 regression] CTAD confuses with {one element} initializer_list

2019-04-19 Thread lichray at gmail dot com
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=edit test case https://godbolt.org/z/f8r

[Bug c++/84849] Ambiguous resolution of braze initializer list to a class with explicit constructors

2019-01-12 Thread lichray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84849 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #6

[Bug c++/88631] New: CTAD cannot deduce from () value initialization

2018-12-28 Thread lichray at gmail dot com
++ 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

[Bug c++/70347] [5.x Regression] default member initializer not picked up by union

2016-03-21 Thread lichray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70347 --- Comment #1 from Zhihao Yuan --- In c++1y, c++14 modes, not c++11.

[Bug c++/70347] New: [5.x Regression] default member initializer not picked up by union

2016-03-21 Thread lichray at gmail dot com
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

[Bug c++/66735] [C++14] lambda init-capture fails for const references

2016-01-06 Thread lichray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66735 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #3

[Bug c++/63192] non-mutable lambda capture by value on reference does not apply const

2016-01-06 Thread lichray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63192 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #3

[Bug c++/63192] non-mutable lambda capture by value on reference does not apply const

2016-01-06 Thread lichray at gmail dot com
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

[Bug libstdc++/68925] New: uniform_int_distribution needs not to be thread_local in std::experimental::randint

2015-12-15 Thread lichray at gmail dot com
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

[Bug c++/56480] Explicit specialization in a namespace enclosing the specialized template

2013-11-29 Thread lichray at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480 Zhihao Yuan lichray at gmail dot com changed: What|Removed |Added CC||lichray at gmail

[Bug libstdc++/58403] New: __normal_iterator triggers odr-use

2013-09-12 Thread lichray at gmail dot com
++ 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_type

[Bug libstdc++/58403] __normal_iterator triggers odr-use

2013-09-12 Thread lichray at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58403 --- Comment #2 from Zhihao Yuan lichray at gmail dot com --- Created attachment 30807 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30807action=edit test case

[Bug libstdc++/58403] __normal_iterator triggers odr-use

2013-09-12 Thread lichray at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58403 --- Comment #5 from Zhihao Yuan lichray at gmail dot com --- (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?

[Bug libstdc++/58403] __normal_iterator triggers odr-use

2013-09-12 Thread lichray at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58403 --- Comment #9 from Zhihao Yuan lichray at gmail dot com --- (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

[Bug c++/48399] New: gcc46 show error when initializing a static const member with base class's constructor

2011-04-01 Thread lichray at gmail dot com
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

[Bug c++/48399] gcc46 show error when initializing a static const member with base class's constructor

2011-04-01 Thread lichray at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48399 --- Comment #3 from Zhihao Yuan lichray at gmail dot com 2011-04-01 11:15:48 UTC --- Fine. Sorry to disturbing you.