public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/11582] Odd error message with dynamically sized template arg printing
Date: Thu, 02 Feb 2012 00:30:00 -0000	[thread overview]
Message-ID: <bug-11582-4-FgCUzTjfk1@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-11582-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 00:30:07 UTC ---
t788.cc: In function ‘void g()’:
t788.cc:6:10: error: no matching function for call to ‘f(int
[(((sizetype)<anonymous>) + 1)])’
t788.cc:6:10: note: candidate is:
t788.cc:2:28: note: template<int N> void f(int (&)[N])
t788.cc:2:28: note:   template argument deduction/substitution failed:
t788.cc:6:10: note:   variable-sized array type ‘int [(((sizetype)<anonymous>)
+ 1)]’ is not a valid template argument

And
t7881.cc: In function ‘void g()’:
t7881.cc:6:10: error: no matching function for call to ‘f(int
[(((sizetype)<anonymous>) + 1)])’
t7881.cc:6:10: note: candidate is:
t7881.cc:2:23: note: template<int N> void f(int (&)[N])
t7881.cc:2:23: note:   template argument deduction/substitution failed:
t7881.cc:6:10: note:   variable-sized array type ‘int [(((sizetype)<anonymous>)
+ 1)]’ is not a valid template argument


       reply	other threads:[~2012-02-02  0:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-11582-4@http.gcc.gnu.org/bugzilla/>
2012-02-02  0:30 ` pinskia at gcc dot gnu.org [this message]
2013-04-19 17:13 ` manu at gcc dot gnu.org
2013-04-22 10:10 ` gdr at gcc dot gnu.org
2013-04-22 10:38 ` manu at gcc dot gnu.org
2013-04-23  3:46 ` gdr at gcc dot gnu.org
2021-08-23 21:41 ` pinskia at gcc dot gnu.org
2021-08-23 22:45 ` bangerth at gmail dot com
2003-07-18 22:25 [Bug c++/11582] New: " bangerth at dealii dot org
2003-07-18 22:52 ` [Bug c++/11582] " gdr at integrable-solutions dot net
2003-07-19  2:31 ` pinskia at physics dot uc dot edu
2003-07-19  3:00 ` bangerth at dealii dot org
2003-08-17 12:43 ` pinskia at gcc dot gnu dot org
2003-08-23  0:51 ` dhazeghi at yahoo dot com
2003-11-23  7:04 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-11582-4-FgCUzTjfk1@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).