This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51229] [C++0x] [4.7 Regression] Broken diagnostic: 'integer_cst' not supported by dump_dec


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51229

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 12:04:46 UTC ---
Created attachment 26015
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26015
gcc47-pr51229.patch

Untested fix.

This patch doesn't deal with missing diagnostics for invalid:

struct A { int i; };

int a = { .foo = 6 };
int b = { [0] = 1 };
_Complex float c = { .foo = 0,  1 };
_Complex float d = { [0] = 0,  1 };
_Complex float e = { 0, .foo = 1 };
_Complex float f = { 0, [0] = 1 };
char g[] = { [7] = "abcd" };

I'd prefer to leave that part to Jason.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]