[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 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
Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- P0558 removed the "pointer specializations" of `atomic

[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++/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
: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- GCC allows template argument deduction to succeed even when deducing an lvalue reference

[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++/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
: accepts-invalid, rejects-valid, wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- It appears GCC implements a non-conforming extension that results

[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
NCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- Clearly the following function returns true. When calli

gcc-bugs@gcc.gnu.org

2024-07-19 Thread hstong at ca dot ibm.com via Gcc-bugs
ONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- In the following, the definitions of two template functions that diffe

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 --- 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

[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-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

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

[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
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- Target: powerpc64le-unknown-linux-gnu When generating optimized code for a powerpc64le Linux

[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 c++/100779] Partial specialization with non-deducible template parameters accepted

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

[Bug c++/118054] New: GCC allows catch-by-value using trivial move constructor

2024-12-15 Thread hstong at ca dot ibm.com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- GCC allows catch-by-copy for classes with deleted copy constructors but trivial move constructors. Online

[Bug c++/118144] New: Off-by-one error in expression mangling of parameter reference in lambda

2024-12-19 Thread hstong at ca dot ibm.com via Gcc-bugs
: wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- According to the Itanium C++ ABI, the expression mangling for a function parameter involves a

[Bug c++/118187] Constraints of template template parameter not checked for non-dependent arguments despite [temp.names]/8

2025-01-28 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118187 --- Comment #2 from Hubert Tong --- (In reply to Patrick Palka from comment #1) > The ttp's constraints can depend on outer template parameters, which I think > prevents us from being able to check its constraints before instantiation in > gener

[Bug c++/118187] New: Constraints of template template parameter not checked for non-dependent arguments despite [temp.names]/8

2024-12-23 Thread hstong at ca dot ibm.com via Gcc-bugs
: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- https://wg21.link/temp.names#8 specifies that when "&

[Bug c/118542] Split -Wexpansion-to-defined for function vs. object like macros

2025-02-17 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118542 Hubert Tong changed: What|Removed |Added CC||hstong at ca dot ibm.com --- Comment #5

<    1   2