Richard Smith
4e18ca5200
C++1y: support 'for', 'while', and 'do ... while' in constant expressions.
...
llvm-svn: 181181
2013-05-06 05:56:11 +00:00
Richard Smith
243ef9077a
C++1y: support for increment and decrement in constant expression evaluation.
...
llvm-svn: 181173
2013-05-05 23:31:59 +00:00
Richard Smith
3229b744a5
Factor out duplication between lvalue-to-rvalue conversions and variable
...
assignments in constant expressions. No significant functionality changes
(slight improvement to potential constant expression checking).
llvm-svn: 181170
2013-05-05 21:17:10 +00:00
Richard Smith
3da88fac54
C++1y: support simple variable assignments in constexpr functions.
...
llvm-svn: 180603
2013-04-26 14:36:30 +00:00
Richard Smith
d9f663b510
C++1y constexpr extensions, round 1: Allow most forms of declaration and
...
statement in constexpr functions. Everything which doesn't require variable
mutation is also allowed as an extension in C++11. 'void' becomes a literal
type to support constexpr functions which return 'void'.
llvm-svn: 180022
2013-04-22 15:31:51 +00:00