This is the mail archive of the gcc-patches@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]

[PATCH] Add test case from PR c++/29571 in the test suite


Hello all,

The test case from this PR used to trigger an ICE in 2006, but does not anymore now:

===
struct A
{
   static const int i = 0/0 + "";
   static const int j = int(i);
};
===

The attached patch therefore adds the case into the regression. Is it OK for trunk?

Best regards,
   Simon

Attachment: CL_29571
Description: Text document

Attachment: error38.C
Description: Text document


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