[Bug c++/118435] New: __builtin_va_arg does not check for POD type argument when it is passed by value

2025-01-12 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118435 Bug ID: 118435 Summary: __builtin_va_arg does not check for POD type argument when it is passed by value Product: gcc Version: 15.0 Status: UNCONFIRMED Severit

[Bug c++/118428] New: Inherited virtual base class with a private destructor is not rejected during instantiation of the corresponding derived class

2025-01-11 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118428 Bug ID: 118428 Summary: Inherited virtual base class with a private destructor is not rejected during instantiation of the corresponding derived class Product: gcc

[Bug c++/118394] New: Ambiguous usage of comparison operator caused by multiple overloaded type conversion operator is not identified

2025-01-10 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118394 Bug ID: 118394 Summary: Ambiguous usage of comparison operator caused by multiple overloaded type conversion operator is not identified Product: gcc Version: 15.

[Bug c++/118393] New: GCC does not allow calling of overloaded private type conversion operator in default argument field of friend function

2025-01-10 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118393 Bug ID: 118393 Summary: GCC does not allow calling of overloaded private type conversion operator in default argument field of friend function Product: gcc Versi

[Bug c++/118382] New: GCC fails to detect erroneous implicit template argument specification in extern class declaration for template class with default argument

2025-01-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118382 Bug ID: 118382 Summary: GCC fails to detect erroneous implicit template argument specification in extern class declaration for template class with default argument Product:

[Bug c++/118381] New: GCC ignores missing 'noexcept' specifier for friend declaration

2025-01-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118381 Bug ID: 118381 Summary: GCC ignores missing 'noexcept' specifier for friend declaration Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c++/118347] New: Nested template class name inside template class with default parameter is not treated as a dependent template name

2025-01-07 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118347 Bug ID: 118347 Summary: Nested template class name inside template class with default parameter is not treated as a dependent template name Product: gcc Version:

[Bug c++/118346] New: Access to member inherited from virtual base class forbidden in GCC with temporary null pointer instance

2025-01-07 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118346 Bug ID: 118346 Summary: Access to member inherited from virtual base class forbidden in GCC with temporary null pointer instance Product: gcc Version: 15.0 Status: UNCON

[Bug target/118345] GCC produces no such instruction: `vmovw %xmm0,%xmm1' for `-O1 -march=emeraldrapids`

2025-01-07 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118345 --- Comment #4 from Bo Wang --- Many thanks. I am upgrading to binutils-2.38. Thank you again!

[Bug target/118345] GCC produces no such instruction: `vmovw %xmm0,%xmm1' for `-O1 -march=emeraldrapids`

2025-01-07 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118345 --- Comment #2 from Bo Wang --- Following the issue 105139, I reproduce the assembler version as follows: ~ $ cat vmovw.s vmovw %xmm0, %xmm1 $ as -v --64 vmovw.s GNU assembler version 2.34 (x86_64-linu

[Bug target/118345] New: GCC produces no such instruction: `vmovw %xmm0,%xmm1' for `-O1 -march=emeraldrapids`

2025-01-07 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118345 Bug ID: 118345 Summary: GCC produces no such instruction: `vmovw %xmm0,%xmm1' for `-O1 -march=emeraldrapids` Product: gcc Version: 15.0 Status: UNCONFIRMED Sev

[Bug c++/118324] New: Type deduction for class with deleted copy constructor failed in lambda parameter

2025-01-07 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118324 Bug ID: 118324 Summary: Type deduction for class with deleted copy constructor failed in lambda parameter Product: gcc Version: 15.0 Status: UNCONFIRMED Severi

[Bug c++/118319] New: ICE Segmentation fault in friend declaration with default argument assigned to an empty lambda expression

2025-01-06 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118319 Bug ID: 118319 Summary: ICE Segmentation fault in friend declaration with default argument assigned to an empty lambda expression Product: gcc Version: 15.0

[Bug c++/118302] New: Invalid 'static_cast' from derived type to private based type is not rejected during in-class initialization of static const member of template class

2025-01-05 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118302 Bug ID: 118302 Summary: Invalid 'static_cast' from derived type to private based type is not rejected during in-class initialization of static const member of template

[Bug c++/118282] New: GCC fails to identify feasible type conversion scheme between operands of conditional expression

2025-01-03 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118282 Bug ID: 118282 Summary: GCC fails to identify feasible type conversion scheme between operands of conditional expression Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c++/118271] New: GCC complains on valid friend declaration of overloaded type conversion operator in a derived class

2025-01-01 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118271 Bug ID: 118271 Summary: GCC complains on valid friend declaration of overloaded type conversion operator in a derived class Product: gcc Version: 15.0 Status: UNCONFIRME

[Bug c++/118264] New: GCC allows declaring constexpr template constructor in derived type with virtual base

2025-01-01 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118264 Bug ID: 118264 Summary: GCC allows declaring constexpr template constructor in derived type with virtual base Product: gcc Version: 15.0 Status: UNCONFIRMED Se

[Bug c++/118255] New: Unnecessary error on variable shadowing for friend declaration inside template class with non-type parameter

2024-12-30 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118255 Bug ID: 118255 Summary: Unnecessary error on variable shadowing for friend declaration inside template class with non-type parameter Product: gcc Version: 15.0

[Bug c++/118242] New: GCC fails to identify ambiguous member name in friend declaration in multiple inheritance

2024-12-30 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118242 Bug ID: 118242 Summary: GCC fails to identify ambiguous member name in friend declaration in multiple inheritance Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c++/118236] New: gcc does not realize ambiguous friend class declaration with multiple using namespace

2024-12-29 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118236 Bug ID: 118236 Summary: gcc does not realize ambiguous friend class declaration with multiple using namespace Product: gcc Version: 15.0 Status: UNCONFIRMED Se

[Bug c++/118228] New: GCC allows instantiation of union with field class having private constructor

2024-12-28 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118228 Bug ID: 118228 Summary: GCC allows instantiation of union with field class having private constructor Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug c++/118218] New: GCC allows the instantiation of private nested classes in a base class from a derived class in a multi-level inheritance chain

2024-12-27 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118218 Bug ID: 118218 Summary: GCC allows the instantiation of private nested classes in a base class from a derived class in a multi-level inheritance chain Product: gcc

[Bug c++/118202] New: ICE segmentation fault when instantiating a derived template class with default template argument and special overloaded ctor

2024-12-25 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118202 Bug ID: 118202 Summary: ICE segmentation fault when instantiating a derived template class with default template argument and special overloaded ctor Product: gcc

[Bug c++/118201] New: ICE: in maybe_explain_implicit_delete, at cp/method.cc:3143

2024-12-25 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118201 Bug ID: 118201 Summary: ICE: in maybe_explain_implicit_delete, at cp/method.cc:3143 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/118193] New: ICE: in verify_ctor_sanity, at cp/constexpr.cc:5362

2024-12-24 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118193 Bug ID: 118193 Summary: ICE: in verify_ctor_sanity, at cp/constexpr.cc:5362 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug c++/118192] New: ICE: in build_data_member_initialization, at cp/constexpr.cc:453

2024-12-24 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118192 Bug ID: 118192 Summary: ICE: in build_data_member_initialization, at cp/constexpr.cc:453 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #13 from Bo Wang --- (In reply to Harald van Dijk from comment #12) > (In reply to Bo Wang from comment #11) > > I have read the working draft standard of C++20 > > (https://github.com/cplusplus/draft/tree/c%2B%2B20). > > > > Follow

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #11 from Bo Wang --- (In reply to Jakub Jelinek from comment #10) > But again, T::unknown isn't used except in a template which is not > instantiated. > It can't be checked during parsing because T::unknown is dependent and could > v

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #9 from Bo Wang --- I have tried another case that has no default arguments. This one also be accepted. We can find that `T::unknown` is used without type-check. ~~

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #7 from Bo Wang --- (In reply to Jakub Jelinek from comment #5) > Probably we just don't instantiate g because nothing needs it. > With > template void f() { > struct S { void g(int n = T::unknown){}; }; > S s; > s.g(); > } > t

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #4 from Bo Wang --- (In reply to Marek Polacek from comment #2) > Bug 66900 is somewhat related in that we also allow int::j. I believe these two bugs have different root causes. Bug 113830 should be due to not instantiating default

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #3 from Bo Wang --- (In reply to Jonathan Wakely from comment #1) > (In reply to Bo Wang from comment #0) > > It appears that if a template function has an internally defined local class > > that uses a dependent name in its member f

[Bug c++/113830] New: GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread wangbopku15 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 Bug ID: 113830 Summary: GCC accepts invalid code when instantiating the local class inside a function Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity