public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39658] [C++0x] "wrong number of template arguments" in variadic template specialization
[not found] <bug-39658-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-15 18:51 ` meadori at gmail dot com
2011-12-22 11:29 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 2+ messages in thread
From: meadori at gmail dot com @ 2011-11-15 18:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39658
Meador Inge <meadori at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |meadori at gmail dot com
--- Comment #1 from Meador Inge <meadori at gmail dot com> 2011-11-15 18:35:55 UTC ---
The example case really only is passing 3 arguments. A comma is missing in
between 'found_sign' and 'found_endian' on the specialization. Also, this has
nothing to do with variadic templates. You can see the same error like:
[meadori@motherbrain gnu]$ cat repros/pr39658.cpp
template <bool a, bool b, bool c>
struct T {};
template <bool b, bool c>
struct T<true, b c> {};
[meadori@motherbrain gnu]$ ./install/bin/g++ -std=c++11 -c repros/pr39658.cpp
repros/pr39658.cpp:5:19: error: wrong number of template arguments (2, should
be 3)
repros/pr39658.cpp:2:8: error: provided for ‘template<bool a, bool b, bool c>
struct T’
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/39658] [C++0x] "wrong number of template arguments" in variadic template specialization
[not found] <bug-39658-4@http.gcc.gnu.org/bugzilla/>
2011-11-15 18:51 ` [Bug c++/39658] [C++0x] "wrong number of template arguments" in variadic template specialization meadori at gmail dot com
@ 2011-12-22 11:29 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-22 11:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39658
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-22 11:10:39 UTC ---
Ah thanks for noticing. Thus this is at most a diagnostic issue. But in fact,
modulo the - well known - benefits of the caret, EDG for example is providing a
very similar diagnostics. I think we can close this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-22 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-39658-4@http.gcc.gnu.org/bugzilla/>
2011-11-15 18:51 ` [Bug c++/39658] [C++0x] "wrong number of template arguments" in variadic template specialization meadori at gmail dot com
2011-12-22 11:29 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).