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
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.
: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56958
Will Benfold changed:
What|Removed |Added
CC||will at benfold dot com
--- Comment #5
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
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
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
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