public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/27403] T() can be an integer constant but is rejected as not one Date: Fri, 26 May 2006 15:26:00 -0000 [thread overview] Message-ID: <20060526152603.1920.qmail@sourceware.org> (raw) In-Reply-To: <bug-27403-6528@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from bangerth at dealii dot org 2006-05-26 15:26 ------- gcc parses this as template <class T> typename A<T (&)() >::I foo (T) { return 0; } i.e. as meaning that the argument is not an integer, but a function that returns an integer. A simpler testcase is this (icc accepts it, though I'm not sure who's right): ------------------- template <int> struct A {}; A<int()> foo (int); ------------------- W. -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27403
next prev parent reply other threads:[~2006-05-26 15:26 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-02 21:12 [Bug c++/27403] New: " pinskia at gcc dot gnu dot org 2006-05-26 15:26 ` bangerth at dealii dot org [this message] [not found] <bug-27403-4@http.gcc.gnu.org/bugzilla/> 2012-02-08 20:17 ` [Bug c++/27403] " pinskia at gcc dot gnu.org 2013-01-19 14:23 ` redi at gcc dot gnu.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=20060526152603.1920.qmail@sourceware.org \ --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: linkBe 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).