[Bug c++/116710] New: Deduction succeeds despite mismatch of reference kind (lvalue versus rvalue)

2024-09-13 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116710 Bug ID: 116710 Summary: Deduction succeeds despite mismatch of reference kind (lvalue versus rvalue) Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: r

[Bug target/116063] [PPC] Transparent union issue with signedness when optimizing

2024-07-23 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116063 --- Comment #2 from Hubert Tong --- If it is invalid, a diagnostic like this should appear: ``` warning: union cannot be made transparent ```

[Bug target/116063] New: [PPC] Transparent union issue with signedness when optimizing

2024-07-23 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116063 Bug ID: 116063 Summary: [PPC] Transparent union issue with signedness when optimizing Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: wrong-code

gcc-bugs@gcc.gnu.org

2024-07-20 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116011 --- Comment #10 from Hubert Tong --- (In reply to Andrew Pinski from comment #9) > (In reply to Hubert Tong from comment #8) > > (In reply to Andrew Pinski from comment #7) > > > Those are all unevulated context.that is sizeof and decltype are b

gcc-bugs@gcc.gnu.org

2024-07-20 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116011 --- Comment #8 from Hubert Tong --- (In reply to Andrew Pinski from comment #7) > Those are all unevulated context.that is sizeof and decltype are both > considered unevulated context. In them, gcc does not think &(T::x) and &T::x > act differen

[Bug c++/116011] Template declaration matching does not differentiate between &(T::x) and &T::x; only the latter can form a pointer to member

2024-07-20 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116011 Hubert Tong changed: What|Removed |Added Summary|accepting &(T::x) as a |Template declaration |p

gcc-bugs@gcc.gnu.org

2024-07-19 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116011 --- Comment #4 from Hubert Tong --- (In reply to Andrew Pinski from comment #3) > The reality of the issue comes down to accepting this: > ``` > struct foo { int val; }; > > int main() { decltype(&(foo::val)) ptr; } > ``` Yes, which was added

gcc-bugs@gcc.gnu.org

2024-07-19 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116011 --- Comment #2 from Hubert Tong --- The fix for Clang is in the works: https://github.com/llvm/llvm-project/pull/89713#issuecomment-2240767267 An issue has been filed against the Itanium ABI: https://github.com/itanium-cxx-abi/cxx-abi/issues/18

gcc-bugs@gcc.gnu.org

2024-07-19 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116011 Bug ID: 116011 Summary: Bogus template redefinition error between pointer-to-member &T::x versus pointer &(T::x) Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c++/115604] New: Absurd "flows off the end of the function" diagnostic with requires expression containing lambda

2024-06-23 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115604 Bug ID: 115604 Summary: Absurd "flows off the end of the function" diagnostic with requires expression containing lambda Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c++/115171] New: Constant evaluation of math.h functions in C++ against constexpr.functions

2024-05-20 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115171 Bug ID: 115171 Summary: Constant evaluation of math.h functions in C++ against constexpr.functions Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: acc

[Bug c++/49395] Non-class prvalues seem to have cv-qualification with GCC

2024-04-04 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49395 Hubert Tong changed: What|Removed |Added Status|SUSPENDED |RESOLVED Resolution|---

[Bug c++/107962] GCC allows constexpr copy construction despite uninitialized member

2023-08-06 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107962 --- Comment #2 from Hubert Tong --- https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2264 suggests that the GCC behaviour may be the desired one because copies of partially-initialized structures are allowed in C but cause undefined

[Bug c++/108324] New: Temporary not bound to reference in default member initializer destroyed early from parenthesized expression-list initialization of aggregate

2023-01-06 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108324 Bug ID: 108324 Summary: Temporary not bound to reference in default member initializer destroyed early from parenthesized expression-list initialization of aggregate Produc

[Bug c++/107962] New: GCC allows constexpr copy construction despite uninitialized member

2022-12-03 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107962 Bug ID: 107962 Summary: GCC allows constexpr copy construction despite uninitialized member Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: accepts-in

[Bug c++/102000] Defaulted consteval default constructor that performs no initialization is not rejected

2022-12-03 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102000 Hubert Tong changed: What|Removed |Added CC||hstong at ca dot ibm.com --- Comment #4 f

[Bug libstdc++/105934] New: [9/10/11/12/13 Regression] C++11 pointer versions of atomic_fetch_add missing because of P0558

2022-06-11 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105934 Bug ID: 105934 Summary: [9/10/11/12/13 Regression] C++11 pointer versions of atomic_fetch_add missing because of P0558 Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug c/105588] _Alignof (C) and alignof (C++) on dereference of `double *` disagree on 32-bit x86

2022-05-13 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105588 --- Comment #4 from Hubert Tong --- (In reply to Jakub Jelinek from comment #3) > _Alignof(expression) works like __alignof__(expression) which works like > __alignof__(__typeof(expression)), while _Alignof(type_name) is mandated by > the standa

[Bug c/105588] _Alignof (C) and alignof (C++) on dereference of `double *` disagree on 32-bit x86

2022-05-12 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105588 --- Comment #2 from Hubert Tong --- (In reply to Andrew Pinski from comment #1) > _Alignof(expression) is still an extension it can return what ever GCC > decides Sure, although why GCC should have corresponding C and C++ extensions that b

[Bug c/105588] New: _Alignof (C) and alignof (C++) on dereference of `double *` disagree on 32-bit x86

2022-05-12 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105588 Bug ID: 105588 Summary: _Alignof (C) and alignof (C++) on dereference of `double *` disagree on 32-bit x86 Product: gcc Version: 13.0 Status: UNCONFIRMED Sever

[Bug c++/105290] New: "Purely syntactic" disambiguation but GCC applies semantic rules for constant expressions

2022-04-15 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105290 Bug ID: 105290 Summary: "Purely syntactic" disambiguation but GCC applies semantic rules for constant expressions Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/104994] New: extern thread_local declaration rejected in constexpr

2022-03-20 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104994 Bug ID: 104994 Summary: extern thread_local declaration rejected in constexpr Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal

[Bug target/100641] Link error when using extern thread_local variables on AIX

2022-03-20 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100641 Hubert Tong changed: What|Removed |Added CC||hstong at ca dot ibm.com --- Comment #2 f

[Bug c++/103060] New: Argument initialization side-effects missing: delegating from base constructor to inherited constructor from virtual base

2021-11-03 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103060 Bug ID: 103060 Summary: Argument initialization side-effects missing: delegating from base constructor to inherited constructor from virtual base Product: gcc Ve

[Bug c++/92060] Alias template as template template argument confused by GCC as other template

2021-04-14 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92060 --- Comment #3 from Hubert Tong --- (In reply to Patrick Palka from comment #2) > Hmm, I think treating A and Q as equivalent here is allowed by CWG 1286. Looks like it; CWG 1286 as not been adopted by the committee though.

[Bug c++/97219] New: Generic lambda does not find function declaration from enclosing block scope

2020-09-27 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97219 Bug ID: 97219 Summary: Generic lambda does not find function declaration from enclosing block scope Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: acc