The two examples in the test would both cause a compiler assert when attempting to calculate
the exception specifier for the default constructor for the template classes. The problem was
that dependents of this function expect that Field->getInClassInitializer (including canThrow) is
not nullptr. However, if the template's initializer has an error, exactly that situation happens.
This patch simply sets the field to be invalid.