[Bug c++/108626] GCC doesn't deduplicate string literals for const char*const and const char[]

2023-02-01 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #4 from Jian

[Bug c++/108626] GCC doesn't deduplicate string literals for const char*const and const char[]

2023-02-02 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626 --- Comment #6 from Jiang An --- (In reply to Marat Radchenko from comment #5) > So, does "String literals, and compound literals with const-qualified types, > need not designate distinct objects." apply here or not? If not, how does > the case

[Bug c++/108781] New: Underlying variables of structured bindings should not be treated as having external or module linkage

2023-02-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108781 Bug ID: 108781 Summary: Underlying variables of structured bindings should not be treated as having external or module linkage Product: gcc Version: 13.0 Status: UNCONFI

[Bug c++/108781] Underlying variables of structured bindings should not be treated as having external or module linkage

2023-02-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108781 --- Comment #1 from Jiang An --- Oh, the variable doesn't seem strictly unnamed ([dcl.struct.bind]/1): > First, a variable with a unique name e is introduced. But it seems that `e` should be unique in the whole program...

[Bug libstdc++/108846] std::copy, std::copy_n on potentially overlapping subobjects

2023-02-20 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108846 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #4 from Jian

[Bug c++/108243] [10/11/12/13 Regression] Missed optimization for static const std::string_view(const char*)

2023-02-20 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108243 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #8 from Jian

[Bug libstdc++/108846] std::copy, std::copy_n on potentially overlapping subobjects

2023-02-20 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108846 --- Comment #6 from Jiang An --- > For example, assuming both sizeof(B) and sizeof(D) are 8, which means the last > 2 bytes of B are padding (true for common implementations on Itanium ABI): Oh, I forgot the strange design caused by CWG43 - thi

[Bug libstdc++/108974] std::barrier except completion function which is not manifestly noexcept

2023-03-01 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108974 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug libstdc++/109024] [C++23][ranges][repeat_view] The default ctor unuseable

2023-03-05 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug c++/95701] undefined enum conversion accepted in constant expression

2023-03-06 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95701 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jiang

[Bug libstdc++/109049] std::declval gives wrong result for cv void

2023-03-07 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109049 --- Comment #3 from Jiang An --- I've mailed to LWG Chair to request legitimation of libc++ and libstdc++'s current strategy.

[Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2023-03-12 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #12 from Jian

[Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2023-03-12 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 --- Comment #13 from Jiang An --- (In reply to Maciej S. Szmigiero from comment #11) > (In reply to Andrew Pinski from comment #9) > > Does these two functions the same name then? > > ``` > > namespace a { > >extern "C" void f(void); > > } >

[Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2023-03-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 --- Comment #15 from Jiang An --- (In reply to Maciej S. Szmigiero from comment #14) > > This is not so useful in practice because most compilers don't make extern > > "C" and extern "C++" differentiate function types (implying calling > > conv

[Bug libstdc++/105118] Why is unexpected::value() named error() in libstdc++?

2022-04-01 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105118 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/102301] make_from_tuple can not work with subrange

2022-04-05 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102301 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #8 from Jian

[Bug libstdc++/79700] std::fabsf and std::fabsl missing from

2022-04-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79700 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #18 from Jian

[Bug libstdc++/105281] status of constexpr and for c++23

2022-04-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105281 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jian

[Bug libstdc++/79700] std::fabsf and std::fabsl missing from

2022-04-21 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79700 --- Comment #19 from Jiang An --- Oh... I was wrong. TR1 mentioned -f and -l variants of "new" (C99) function families (e.g. truncf), but no those of "old" (C89) math function families.

[Bug libstdc++/102301] make_from_tuple can not work with subrange

2022-07-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102301 --- Comment #11 from Jiang An --- I think the P2165R4 has clarifed that std::make_from_tuple etc. need to be applicable to std::ranges::subrange. And a large part of LWG3690 becomes NAD in C++23 - tuple-like utilities no longer touch std::varian

[Bug libstdc++/104443] common_iterator::operator-> is not correctly implemented

2022-07-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104443 --- Comment #3 from Jiang An --- LWG3672 has been adopted, so no change is needed and this issue can be closed. Although it might be more clear to use auto instead of decltype(auto).

[Bug libstdc++/106852] Implement C++23 P2465R3 Standard Library Modules std and std.compat

2022-09-24 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106852 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/107092] New: std::for_each_n and its friends incorrectly accept size parameters that are not convertible to an integer type

2022-09-29 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107092 Bug ID: 107092 Summary: std::for_each_n and its friends incorrectly accept size parameters that are not convertible to an integer type Product: gcc Version: 12.1

[Bug c++/107256] New: Contradictory circular noexcept-specifier is accepted

2022-10-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107256 Bug ID: 107256 Summary: Contradictory circular noexcept-specifier is accepted Product: gcc Version: 12.2.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal

[Bug libstdc++/107092] std::for_each_n and its friends incorrectly accept size parameters that are not convertible to an integer type

2022-10-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107092 --- Comment #3 from Jiang An --- https://cplusplus.github.io/LWG/issue3793 has been submitted. Such requirement was originally added by N0700 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/1995/N0700.pdf), but intented target types were u

[Bug c++/107255] declaration and definition of a template function which vary in use of concept auto syntax are interpreted as ambiguous overloads

2022-10-15 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107255 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug c++/78014] -Wformat -vs- size_t

2022-10-18 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78014 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #9 from Jiang

[Bug c++/107324] New: Defaulted operator== with a dependent return type is rejected

2022-10-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107324 Bug ID: 107324 Summary: Defaulted operator== with a dependent return type is rejected Product: gcc Version: 12.2.0 Status: UNCONFIRMED Keywords: rejects-valid

[Bug c++/107325] New: Defaulted operator<=> with a non-comparison-category return type is not deleted

2022-10-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107325 Bug ID: 107325 Summary: Defaulted operator<=> with a non-comparison-category return type is not deleted Product: gcc Version: 12.2.0 Status: UNCONFIRMED Keywor

[Bug libstdc++/103655] "x" does not exist on windows and dos

2022-01-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103655 --- Comment #1 from Jiang An --- It seems that MS implemented the "x" mode in 2020: https://github.com/MicrosoftDocs/cpp-docs/commit/3e0701d935614423e1f09a6712cb5b5e28c43022#diff-be5df6fa41d451f0736c5cd8d863fb3bccfd2b49fbd6b0f7f5de6c07c87700ac

[Bug libstdc++/103655] "x" does not exist on windows and dos

2022-01-20 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103655 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug c++/104264] New: __is_trivially_copyable fails to report non-recursively trivially copyable classes

2022-01-27 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104264 Bug ID: 104264 Summary: __is_trivially_copyable fails to report non-recursively trivially copyable classes Product: gcc Version: 12.0 Status: UNCONFIRMED Keywo

[Bug c++/104266] Temporaries with protected destructor are erroneously permitted

2022-01-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/104443] New: common_iterator::operator-> is not correctly implemented

2022-02-08 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104443 Bug ID: 104443 Summary: common_iterator::operator-> is not correctly implemented Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prio

[Bug libstdc++/104542] New: make_obj_using_allocator and uninitialized_construct_using_allocator lack constexpr

2022-02-14 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104542 Bug ID: 104542 Summary: make_obj_using_allocator and uninitialized_construct_using_allocator lack constexpr Product: gcc Version: 12.0 Status: UNCONFIRMED Keyw

[Bug libstdc++/104559] vector v; v.insert(v.begin()); compiles, but it shouldn't

2022-02-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104559 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug c++/103183] New: ind[arr] produces an lvalue when arr is an array xvalue

2021-11-11 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103183 Bug ID: 103183 Summary: ind[arr] produces an lvalue when arr is an array xvalue Product: gcc Version: 10.1.0 Status: UNCONFIRMED Keywords: accepts-invalid, rej

[Bug c++/103185] New: ind[arr] is rejected when arr is an array prvalue

2021-11-11 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103185 Bug ID: 103185 Summary: ind[arr] is rejected when arr is an array prvalue Product: gcc Version: 10.1.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal

[Bug c++/103511] New: __builtin_bit_cast requires a constructor call

2021-11-30 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103511 Bug ID: 103511 Summary: __builtin_bit_cast requires a constructor call Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal

[Bug c++/72777] broken error message with reference in constexpr arguments in c++11 mode

2021-12-02 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72777 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jiang

[Bug libstdc++/103726] --disable-hosted-libstdcxx (freestanding C++) does not provide as what standard requires

2021-12-15 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103726 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #6 from Jian

[Bug c++/38541] function parameter type T(*)[]

2021-12-15 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38541 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jiang

[Bug c++/95564] GCC rejects lambda expression with "noexcept(1+1)"

2021-12-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95564 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jiang

[Bug c++/102535] New: __is_trivially_constructible rejects some trivial cases in aggregate initializations

2021-09-29 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102535 Bug ID: 102535 Summary: __is_trivially_constructible rejects some trivial cases in aggregate initializations Product: gcc Version: 10.1.0 Status: UNCONFIRMED S

[Bug libstdc++/102894] New: make_any is not SFINAE-friendly

2021-10-22 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102894 Bug ID: 102894 Summary: make_any is not SFINAE-friendly Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3

[Bug c++/107528] constexpr evaluator doesn't check for deallocate of mismatched size

2022-11-04 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107528 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/106676] [C++20] Automatic iterator_category detection misbehaves when `::reference` is an rvalue reference, refuses to accept a forward iterator

2022-11-14 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106676 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug c++/97665] constexpr union array member incorrectly rejected as non-constexpr

2022-11-22 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97665 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #11 from Jian

[Bug c++/107904] New: __func__ is not properly treated as an array variable

2022-11-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107904 Bug ID: 107904 Summary: __func__ is not properly treated as an array variable Product: gcc Version: 12.2.1 Status: UNCONFIRMED Keywords: accepts-invalid, rejects-valid S

[Bug libstdc++/108260] __cpp_lib_ranges_zip feature test macro not defined while std::views::zip is supported

2023-01-03 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108260 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jian

[Bug libstdc++/108260] __cpp_lib_ranges_zip feature test macro not defined while std::views::zip is supported

2023-01-04 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108260 --- Comment #3 from Jiang An --- __cpp_lib_ranges_as_rvalue is also missing... (together with feature test macros for C++23 views?)

[Bug libstdc++/106611] std::is_nothrow_copy_constructible returns wrong result

2023-01-06 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106611 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #7 from Jian

[Bug libstdc++/105845] Provide a name mangling facility usable within C++ code

2022-06-06 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105845 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/101482] The resolution of #32907 is too restricted

2022-06-15 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101482 --- Comment #1 from Jiang An --- Partially fixed together with bug #62187.

[Bug libstdc++/105995] New: QoI: constexpr basic_string variable must use all of its SSO buffer

2022-06-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105995 Bug ID: 105995 Summary: QoI: constexpr basic_string variable must use all of its SSO buffer Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/105995] QoI: constexpr basic_string variable must use all of its SSO buffer

2022-06-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105995 --- Comment #2 from Jiang An --- (In reply to Andrew Pinski from comment #1) > C++20 supports dynamic allocation for constexpr. Yeah, but a constexpr variable can't hold dynamically allocated memory. Dynamically allocated memory must be dealloc

[Bug libstdc++/71108] to_string is relatively slow

2022-07-03 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71108 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jiang

[Bug libstdc++/101482] New: The resolution of #32907 is too restricted

2021-07-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101482 Bug ID: 101482 Summary: The resolution of #32907 is too restricted Product: gcc Version: 11.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lib

[Bug c++/101906] New: Constant evaluation failure in concepts

2021-08-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101906 Bug ID: 101906 Summary: Constant evaluation failure in concepts Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug libstdc++/113851] New: boyer_moore_searcher and boyer_moore_horspool_searcher fail to accept ADL-incompatible element types

2024-02-09 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113851 Bug ID: 113851 Summary: boyer_moore_searcher and boyer_moore_horspool_searcher fail to accept ADL-incompatible element types Product: gcc Version: 14.0 Status: UNCONFIRM

[Bug libstdc++/113060] std::variant converting constructor/assignment is non-conforming after P2280?

2024-02-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113060 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #4 from Jian

[Bug libstdc++/113060] std::variant converting constructor/assignment is non-conforming after P2280?

2024-02-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113060 --- Comment #5 from Jiang An --- Function pointers seem working (https://gcc.godbolt.org/z/Mbvfafdof). ``` template constexpr bool is_array_element_initializable_from = false; template constexpr bool is_array_element_initializable_from decltype

[Bug libstdc++/113060] std::variant converting constructor/assignment is non-conforming after P2280?

2024-02-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113060 --- Comment #6 from Jiang An --- (In reply to Jiang An from comment #5) > `decltype(std::declval > decltype(_Arr<_Ti>{{std::forward<_Tp>(__t)}})>(std::declval<_Tp>()))` Typo, this should be `decltype(std::declval decltype(_Arr<_Ti>{{std::forwa

[Bug libstdc++/113007] `std::variant` converting constructor and `operator=` compile while the C++ Standard says they must not

2024-02-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113007 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #8 from Jian

[Bug libstdc++/113060] std::variant converting constructor/assignment is non-conforming after P2280?

2024-02-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113060 --- Comment #8 from Jiang An --- (In reply to Giuseppe D'Angelo from comment #7) > Hi, > > > Note that this example adds a mediate function template > > (test_array_element_initializable) to "reduce" the non-constexpr-ness of > > std::declval

[Bug libstdc++/114018] std::nexttoward is not implemented for C++23-FP-Types

2024-02-21 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114018 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #12 from Jia

[Bug libstdc++/113782] constexpr on std::initializer_list, std::pair and std::tuple is non-conforming for C++11

2024-02-21 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113782 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug c++/114078] New: operator new and operator delete are incorrectly acceptable as explicit object member functions

2024-02-23 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114078 Bug ID: 114078 Summary: operator new and operator delete are incorrectly acceptable as explicit object member functions Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/104850] Instantiating a destructor for a template class too early, before the calling destructor is seen - rejects valid code

2024-02-23 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104850 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #5 from Jian

[Bug c++/114076] list-initialization with assignment expression triggers wrong template instanciation

2024-02-23 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114076 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug c++/114076] list-initialization with assignment expression triggers wrong template instanciation

2024-02-23 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114076 --- Comment #2 from Jiang An --- The "templatization" trick also works for GCC. https://godbolt.org/z/8PeMMzsbb ``` template struct holder { holder() = default; constexpr ~holder() { static_assert(sizeof(T) || true); } };

[Bug c++/114163] Calling member function of an incomplete type compiles in gcc and does not compile in clang and msvc

2024-02-29 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114163 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jian

[Bug libstdc++/77776] C++17 std::hypot implementation is poor

2024-03-03 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #14 from Jian

[Bug libstdc++/114336] Manual should document implementation-defined behaviour in C++20 and C++23

2024-03-14 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114336 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/114354] std::shared_ptr constructor constraints are checked too late

2024-03-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114354 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/114387] New: Explicitly declared destructor makes basic_format_context sometimes not movable

2024-03-18 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114387 Bug ID: 114387 Summary: Explicitly declared destructor makes basic_format_context sometimes not movable Product: gcc Version: 14.0 Status: UNCONFIRMED Severity

[Bug c++/114388] New: Behavioral change of typeid on xvalues since GCC 9

2024-03-18 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114388 Bug ID: 114388 Summary: Behavioral change of typeid on xvalues since GCC 9 Product: gcc Version: 9.5.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal

[Bug c++/114388] Behavioral change of typeid on xvalues since GCC 9

2024-03-18 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114388 --- Comment #1 from Jiang An --- Moreover, perhaps we should list N3055 in the implementation status page (https://gcc.gnu.org/projects/cxx-status.html) since it did contain behavioral change of typeid.

[Bug c++/114388] Behavioral change of typeid on xvalues since GCC 9

2024-03-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114388 --- Comment #3 from Jiang An --- (In reply to Richard Biener from comment #2) > So you say GCC 9+ are wrong with -std=c++98 but OK with -std=c++11 or newer > (the default)? Yes.

[Bug c++/114388] Behavioral change of typeid on xvalues since GCC 9

2024-03-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114388 --- Comment #7 from Jiang An --- (In reply to Jonathan Wakely from comment #5) > Prior to DR 616 the expression (true ? WrapB().b : WrapD().d) was a prvalue > of type B, created by copying the B (or slicing the D when the condition is > false).

[Bug libstdc++/114400] New: The resolution of LWG3950 seems incorrectly implemented

2024-03-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114400 Bug ID: 114400 Summary: The resolution of LWG3950 seems incorrectly implemented Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: rejects-valid

[Bug libstdc++/114400] The resolution of LWG3950 seems incorrectly implemented

2024-03-20 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114400 --- Comment #4 from Jiang An --- (In reply to Jonathan Wakely from comment #1) > The resolution of LWG 3950 has not been implemented, at all. Hmm... r14-5349 seems "implementing the resolution" per the commit message. Perhaps I misread somethin

[Bug c++/114395] [c++20+] std::is_constructible_v result of const reference incorrect

2024-03-20 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114395 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #10 from Jia

[Bug libstdc++/114417] std::experimental::simd is not a POD (by ABI definitions) and is always passed by reference instead of by value

2024-03-21 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114417 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #8 from Jian

[Bug libstdc++/114477] The user-defined constructor of filter_view::iterator is not fully compliant with the standard

2024-03-26 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114477 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/114477] The user-defined constructor of filter_view::iterator is not fully compliant with the standard

2024-03-27 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114477 --- Comment #5 from Jiang An --- (In reply to 康桓瑋 from comment #0) > Since P3059R0 is closed (although I feel bad about this) BTW, now I think this is somehow unfortunate. P3059 behaved like a follow-up paper of P2711 IMO. Both papers effective

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2024-03-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #12 from Jian

[Bug c++/104095] g++ diagnosis may use non-standard terminology: "constant" instead of "literal", "integer" instead of "integral"

2023-07-23 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104095 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jian

[Bug c++/108626] GCC doesn't deduplicate string literals for const char*const and const char[]

2023-07-23 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626 --- Comment #9 from Jiang An --- See also CWG2753. https://cplusplus.github.io/CWG/issues/2753.html

[Bug c++/110822] [13/14 Regression] ICE on constexpr initialized with non-constant expression also accepts-invalid

2023-07-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110822 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug libstdc++/106611] std::is_nothrow_copy_constructible returns wrong result

2023-08-03 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106611 --- Comment #9 from Jiang An --- (In reply to Nikolas Klauser from comment #8) > I agree that the wording is a bit ambiguous, but GCC should decide on one > of them instead of returning different results between the type trait > builtins and th

[Bug libstdc++/110854] constructor of std::counting_semaphore is not constexpr

2023-08-03 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110854 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jian

[Bug libstdc++/106611] std::is_nothrow_copy_constructible returns wrong result

2023-08-06 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106611 --- Comment #10 from Jiang An --- https://cplusplus.github.io/LWG/issue3967

[Bug c++/110912] False assumption that constructors cannot alias any of their parameters

2023-08-07 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110912 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from Jian

[Bug libstdc++/106611] std::is_nothrow_copy_constructible returns wrong result

2023-08-08 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106611 --- Comment #15 from Jiang An --- (In reply to Arthur O'Dwyer from comment #11) > @jwakely, I propose that this issue should be recategorized as a compiler > bug. (And I'm also voting effectively "NAD" on LWG3967.) Hmm... IMO given the current

[Bug c++/110981] New: constexpr variable definition that requires dynamic destruction should be rejected

2023-08-10 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110981 Bug ID: 110981 Summary: constexpr variable definition that requires dynamic destruction should be rejected Product: gcc Version: 13.2.1 Status: UNCONFIRMED Key

[Bug c++/106094] Lifetime extension of temporary do not obey some rules of [class.temporary]

2023-08-11 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106094 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #6 from Jian

[Bug libstdc++/100249] missing forwarding std::__invoke result in ranges::is_permutation and ranges::clamp

2023-08-19 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100249 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #13 from Jia

[Bug c++/110342] [C++26] P2361R6 - Unevaluated strings

2023-08-24 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110342 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug libstdc++/111258] std::string cannot to be moved in constant evaluated expression

2023-09-01 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111258 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from Jian

  1   2   >