1 // RUN: %clang_cc1 -std=c++17 -fms-extensions -triple=x86_64-pc-win32 -verify %s
2 // RUN: %clang_cc1 -std=c++17 -fms-extensions -triple=x86_64-pc-win32 -verify %s -fexperimental-new-constant-interpreter
3 // expected-no-diagnostics
5 // PR40395 - ConstantExpr shouldn't cause the template object to infinitely
8 struct __declspec(uuid("{AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA}")) B
{};
10 template <const _GUID
* piid
>
12 virtual void baz() { A
<piid
>(); }