[Bug c++/61816] New: Member functions of a template class can access private classes without permission

2014-07-15 Thread myriachan at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu

[Bug c++/61015] Stack corruption with templates and pass-by-reference

2014-07-15 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61015 Melissa myriachan at gmail dot com changed: What|Removed |Added CC||myriachan at gmail

[Bug c++/49604] forward-declared enum's elements in class scope gets default access (class vs struct)

2014-10-16 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49604 Melissa myriachan at gmail dot com changed: What|Removed |Added CC||myriachan at gmail

[Bug inline-asm/67317] New: [x86] Silly code generation for _addcarry_u32/_addcarry_u64

2015-08-21 Thread myriachan at gmail dot com
Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- x86 intrinsics _addcarry_u32 and _addcarry_u64 generate silly code. For example, the following function to get the result of a 64-bit

[Bug c++/49171] [C++0x][constexpr] Constant expressions support reinterpret_cast

2015-08-23 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49171 Melissa myriachan at gmail dot com changed: What|Removed |Added CC||myriachan at gmail

[Bug c++/67333] New: [C++11][constexpr] constexpr functions incorrectly prohibit taking references to volatile types

2015-08-23 Thread myriachan at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- GCC 4.7.3 (at least) through GCC 6.0 reject the following due to meow has side-effects: #include cstddef

[Bug c/65892] gcc fails to implement N685 aliasing of union members

2015-09-08 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892 Melissa changed: What|Removed |Added CC||myriachan at gmail dot com --- Comment #12

[Bug c/65892] gcc fails to implement N685 aliasing of union members

2015-09-08 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892 --- Comment #13 from Melissa --- As for a reason why this should be allowed, all I need is to do is mention struct sockaddr.

[Bug target/79155] New: Typo in cpuid.h comment

2017-01-19 Thread myriachan at gmail dot com
: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- x86's gcc/config/i386/cpuid.h contains the following comment: /* Return highest supported input value for cpuid instruction. ext can be either 0x0 or 0x800 to return highest supported

[Bug sanitizer/77891] New: Signed overflow sanitizer doesn't catch multiplication overflows due to promotion

2016-10-06 Thread myriachan at gmail dot com
Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot

[Bug c++/67333] [C++11][constexpr] constexpr functions incorrectly prohibit taking references to volatile types

2016-10-12 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67333 Melissa changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/55004] [meta-bug] constexpr issues

2016-10-12 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 67333, which changed state. Bug 67333 Summary: [C++11][constexpr] constexpr functions incorrectly prohibit taking references to volatile types https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67333 What

[Bug c/82224] Strict-aliasing not noticing valid aliasing of two unions with active members

2017-09-15 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82224 --- Comment #3 from Melissa --- (In reply to Andrew Pinski from comment #1) > See PR 14319 which I think this is a dup of. PR 14319 refers to a case in which you are allowed to read the common prefix of a structure when the structure is not the

[Bug c/82224] New: Strict-aliasing not noticing valid aliasing of two unions with active members

2017-09-15 Thread myriachan at gmail dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- Consider the following C/C++ code with -O3 -fstrict-aliasing: struct s1 {unsigned short x;}; struct s2 {unsigned short x

[Bug tree-optimization/82224] Strict-aliasing not noticing valid aliasing of two unions with active members

2017-09-25 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82224 --- Comment #5 from Melissa --- This originated from a Stack Overflow post "supercat" made (I'm the "Myria" there). https://stackoverflow.com/questions/46205744/is-this-use-of-unions-strictly-conforming/

[Bug c++/84415] New: Using __m128 as a template parameter causes warnings

2018-02-15 Thread myriachan at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- Attempting to use one of the intrinsic x86 vector types like __m128 causes a warning: :9:30: warning: ignoring attributes on template argument '__m128 {aka __vector(4

[Bug c++/84581] New: GCC expects "override" keyword in incorrect grammar position

2018-02-26 Thread myriachan at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- GCC expects the "override" keyword in an incorrect position in the C++ grammar: #define MEOW 256 struct Base {

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-04-10 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 --- Comment #2 from Melissa --- Templates that take an optional function pointer as a template parameter. It lets you have templates that change behavior if a null function pointer is passed.

[Bug c++/94554] New: spurious -Waddress warning within "if constexpr" function-null compares

2020-04-10 Thread myriachan at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- The following with -std=c++17 -Waddress: int meow() { return 1; } void kitty(int); template void test() { if co

[Bug c++/109795] New: is_standard_layout incorrect for colliding member and base class

2023-05-09 Thread myriachan at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myriachan at gmail dot com Target Milestone: --- The following compiles on GCC 13.1.0 when it should not: struct X { }; struct Y { X x; }; struct Z : X { Y y