* New snapshot release (3.4 release) * Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so to fix make the llvm-config-3.4 --libdir work (Closes: #708677) * Various packages rename to allow co installations: * libclang1 => libclang1-3.4 * libclang1-dbg => libclang1-3.4-dbg * libclang-dev => libclang-3.4-dev * libclang-common-dev => libclang-common-3.4-dev
template<typename T> struct ImplicitVirtualFromDependentBase : T {
27
constexpr int ImplicitlyVirtual() { return 0; }
27
constexpr int ImplicitlyVirtual() const { return 0; }
28
28
};
29
29
30
30
constexpr int a = ImplicitVirtualFromDependentBase<S>().ImplicitlyVirtual(); // expected-error {{constant expression}} expected-note {{cannot evaluate virtual function call}}
32
32
constexpr int c = ImplicitVirtualFromDependentBase<S>().ImplicitVirtualFromDependentBase<S>::ImplicitlyVirtual();
33
33
34
34
template<typename R> struct ConstexprMember {
35
constexpr R F() { return 0; }
35
constexpr R F() const { return 0; }
36
36
};
37
37
constexpr int d = ConstexprMember<int>().F(); // ok
38
38
constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}}