[Bug c++/88857] [7/8/9 Regression] ICE in build_value_init

2019-01-30 Thread will at benfold dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88857 --- Comment #7 from Will Benfold --- I think it's not so much class vs struct: I get an ICE iff 'a' is private. Just changing class -> struct stops the ICE, but then it comes back again if you make 'a' private. Similarly, with a class you can m

[Bug c++/88857] [7/8/9 Regression] ICE in build_value_init

2019-01-15 Thread will at benfold dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88857 --- Comment #3 from Will Benfold --- (In reply to Marek Polacek from comment #2) > Started with r202612. Is that just because before r202612, there was no support for 'auto' in a function declaration? I see the ICE with every release down to 4.

[Bug c++/88857] New: ICE in build_value_init

2019-01-15 Thread will at benfold dot com
: unassigned at gcc dot gnu.org Reporter: will at benfold dot com Target Milestone: --- ICE on invalid code (g calls f with the wrong number of args). class Foo { int a; }; void f (const Foo &, int); void g (auto) { f({}); } $ g++ test.cpp -o test.o test.cpp

[Bug c++/56958] Spurious set but not used variable warning in empty pack expansion

2018-06-21 Thread will at benfold dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56958 Will Benfold changed: What|Removed |Added CC||will at benfold dot com --- Comment #5

[Bug c++/84488] New: Incorrect "set but not used" warning for static_cast(double)

2018-02-20 Thread will at benfold dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: will at benfold dot com Target Milestone: --- Test case: int main () { enum Foo {}; double one = 1.0; return static_cast(one); } Output: $ g++ -Wall -Wextra

[Bug c++/64329] New: Crash when returning reference from lambda with deduced type

2014-12-16 Thread will at benfold dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: will at benfold dot com Created attachment 34289 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34289&action=edit Preprocessed source I believe the program below is valid and

[Bug c++/52985] Postincrement not applied after indexing ternary array expression

2012-04-18 Thread will at benfold dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52985 --- Comment #2 from Will Benfold 2012-04-18 18:08:16 UTC --- Another test case; this one doesn't need any headers and also cuts out the loop. The exit status should always be 1, but in fact it's 0 if no command-line args are supplied and 1 other

[Bug middle-end/52985] New: Postincrement not applied after indexing ternary array expression

2012-04-14 Thread will at benfold dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52985 Bug #: 52985 Summary: Postincrement not applied after indexing ternary array expression Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED