commit | 16581335fc32abcbc6ab14eda7af38cf759664b7 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Mar 02 04:14:40 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Mar 02 04:14:40 2012 +0000 |
tree | ee8e69c07d34c7c01643e5cdbd2be42e7aed780c | |
parent | 0524171a57e6f9f6ee79c02ed4e20c5914d8b2db [diff] |
Ensure that we instantiate static reference data members of class templates early, since their values can be used in constant expressions in C++11. For odr-use checking, the opposite change is required, since references are odr-used whether or not they satisfy the requirements for appearing in a constant expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151881 91177308-0d34-0410-b5e6-96231b3b80d8