Success! Subscription added.
Success! Subscription removed.
Sorry, you must verify to complete this action. Please click the verification link in your email. You may re-send via your
int f(int n = 0, T ...t);
int x = f<int>();
GodboltPer the wording change in DR2233 the above code should fail to compile.
GCC, Clang and MSVC all correctly reject this code.
Duplicate thread. Kindly refer to https://software.intel.com/en-us/forums/intel-c-compiler/topic/856652.
For more complete information about compiler optimizations, see our Optimization Notice.