================
@@ -522,3 +522,5 @@ constexpr int intDestArray() {
 static_assert(intDestArray() == 0); // both-error {{not an integral constant 
expression}} \
                                     // both-note {{in call to}}
 
+constexpr void invalidDest() { new (undefinedfunction()) int; } // both-error 
{{use of undeclared identifier 'undefinedfunction'}}
----------------
tbaederr wrote:

https://gcc.godbolt.org/z/G73649ne7 It's the same with the current interpreter, 
so yes.

https://github.com/llvm/llvm-project/pull/179629
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to