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] |
We also catch more errors at this point. In template/crash55.C, we have this:
template<typename class T, T = T()> struct A {};
Now that the default argument goes through tsubst we emit this message:
test.cc:1:34: error: a cast to a type other than an integral or enumeration type cannot appear in a constant-expression
I don't know if the error message is useful, but I believe it's correct. So I adjusted the test.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |