[Bug c++/91423] address-of-packed-member when taking packed struct member by value

2019-08-13 Thread anders at knatten dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91423 --- Comment #5 from Anders Schau Knatten --- (In reply to Andrew Pinski from comment #4) > Vec size = s.size; > > you are invoking the copy constructor here ... > Which means you are taking the address (implicitly). Good point. This should be

[Bug c++/91423] address-of-packed-member when taking packed struct member by value

2019-08-12 Thread anders at knatten dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91423 --- Comment #3 from Anders Schau Knatten --- (In reply to Richard Biener from comment #1) > I think GCC tells you that deriving from std::array from a packed struct is > going to cause trouble because std::array expects to be naturally aligned?

[Bug c++/91423] New: address-of-packed-member when taking packed struct member by value

2019-08-12 Thread anders at knatten dot org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders at knatten dot org Target Milestone: --- Compiling this with `-std=c++17 -Wall` on gcc 9.1.0: ``` #include struct __attribute__((__packed__)) Vec : std::array {}; struct

[Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda

2018-03-15 Thread anders at knatten dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66672 --- Comment #4 from Anders Schau Knatten --- Update: There's a related issue with Clang, in which Richard Smith makes a good argument: https://bugs.llvm.org/show_bug.cgi?id=35423#c2 He refers to http://eel.is/c++draft/expr.prim.id.unqual#2.sente

[Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda

2018-03-15 Thread anders at knatten dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66672 Anders Schau Knatten changed: What|Removed |Added CC||anders at knatten dot org

[Bug c++/57826] New: "Internal compiler error: Error reporting routines re-entered" with -Weffc++ and weak_ptr

2013-07-04 Thread anders at knatten dot org
NCONFIRMED Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders at knatten dot org Created attachment 30461 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30461&action=edit As requested by "Prep