- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compiling
[cpp]
template<class... Args>
int g(Args... args)
{ return sizeof...(args); }
int main() {
g(1);
g(1, 2);
g(1, 2, 3);
}[/cpp]
with
[plain]icl /Qstd:c++0x /W4 templ_var_args_warning.cpp[/plain]
results in
[plain]
templ_var_args_warning.cpp(2): remark #869: parameter "args" was never referenced
int g(Args... args)
^
detected during instantiation of "int g(Args...) [with Args=<int, int, int>]" at line 7[/plain]
Note that the first two instantiations of g() do not produce the remark.
This is happening with ICC Version 13.0.1.119 Build 20121008 and older versions.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
the defect in question will be fixed with a future version of our compiler (not 15.0, but next major version).
Best regards,
Georg Zitzlsberger

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page