| commit | fcafc6e3de28482b2199f6a1bbab53a66bc0820b | [log] [tgz] |
|---|---|---|
| author | Douglas Gregor <dgregor@apple.com> | Tue May 24 16:02:01 2011 +0000 |
| committer | Douglas Gregor <dgregor@apple.com> | Tue May 24 16:02:01 2011 +0000 |
| tree | 86895c52c433094a6319bd2ef3f0d77c4c454831 | |
| parent | 7c2c664500c5e437fcab8613facd4e85ef397ec7 [diff] |
Implement the initial part of C++0x [expr.const]p2, which specifies that the unevaluated subexpressions of &&, ||, and ? : are not considered when determining whether the expression is a constant expression. Also, turn the "used in its own initializer" warning into a runtime-behavior warning, so that it doesn't fire when a variable is used as part of an unevaluated subexpression of its own initializer. Fixes PR9999. llvm-svn: 131968