Details
-
Bug
-
Resolution: Done
-
P4: Low
-
Qt Creator 1.3.83 (2.0.0-beta)
-
Windows 7 (64)
Description
Although the build is successful, when compiling the following code with MinGW I get the Build Issues listing a red mark for the unused variable i inside the function template (please see attachment). With a non-template function the behavior is as expected. Note: The problem doesn't happen with the MSVC toolchain.
template <class T>
inline void g()
inline void f()
{ int i; /* Ok. */ }int main(int argc, char *argv[])
{
f();
g<int>();
return 0;
}