diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-06-12 11:43:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-06-12 11:43:46 +0000 |
commit | c2cdd5354aba8d6a74c45231829f3bbbbfeb2781 (patch) | |
tree | bcd4522569bb3807614756ef60146c0c78a189a9 /LICENSE.TXT | |
parent | 7ec1b7a537951f80c6531103ee4787d12e696630 (diff) |
Don't assert on initialized typedef declarations in classes:
struct {
typedef int A = 0;
};
According to the C++11 standard, this is not ill-formed, but does not have any ascribed meaning. We can't reasonably accept it, so treat it as ill-formed.
Also switch C++ from an incorrect 'fields can only be initialized in constructors' diagnostic for this case to C's 'illegal initializer (only variables can be initialized)'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'LICENSE.TXT')
0 files changed, 0 insertions, 0 deletions