mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
![]() Currently type of parameters of instantiated template function is ignored while preparing activation record, which makes constexpr evaluation of instantiated body use types of arguments in function call expression instead: template<typename T> bool f(T t) { return t > 0; } t<unsigned int>(-1); // CDT returns false because conversion is not done Fix this by applying EvalTypeId to argument if cost of standard conversions is Rank.CONVERSION to make sure createActivationRecord() would populate activation record with argument values matching template parameter types. |
||
---|---|---|
.. | ||
org.eclipse.cdt.core | ||
org.eclipse.cdt.core.linux | ||
org.eclipse.cdt.core.linux.aarch64 | ||
org.eclipse.cdt.core.linux.ppc64le | ||
org.eclipse.cdt.core.linux.x86_64 | ||
org.eclipse.cdt.core.macosx | ||
org.eclipse.cdt.core.native | ||
org.eclipse.cdt.core.tests | ||
org.eclipse.cdt.core.win32 | ||
org.eclipse.cdt.core.win32.x86_64 | ||
org.eclipse.cdt.ui | ||
org.eclipse.cdt.ui.tests | ||
pom.xml |