public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/27732] [4.0 Regression] Parentheses elicit spurious error: "missing '>' to terminate the template argument list" Date: Mon, 16 Oct 2006 23:25:00 -0000 [thread overview] Message-ID: <20061016232523.14860.qmail@sourceware.org> (raw) In-Reply-To: <bug-27732-10061@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-10-16 23:25 ------- James -- Case #1 in Comment #1 is accepted by current G++ 4.1 and mainline branches. I do not believe Case #2 is valid, as the standard says that a non-type template argument may be: the address of an object or function with external linkage, includ- ing function templates and function template-ids but excluding non- static class members, expressed as & id-expression Thus, the parentheses make this case invalid. Admittedly, that's pedantic, but I think that's what the standard says. Comment #3 is a separate enhancement request, and should be refiled separately. Thanks, -- Mark -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.0/4.1/4.2 Regression] |[4.0 Regression] Parentheses |Parentheses elicit spurious |elicit spurious error: |error: "missing '>' to |"missing '>' to terminate |terminate the template |the template argument list" |argument list" | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27732
next prev parent reply other threads:[~2006-10-16 23:25 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-22 20:08 [Bug c++/27732] New: " widman at gimpel dot com 2006-05-22 22:46 ` [Bug c++/27732] " bangerth at dealii dot org 2006-05-23 15:10 ` widman at gimpel dot com 2006-09-17 19:30 ` [Bug c++/27732] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org 2006-10-16 23:25 ` mmitchel at gcc dot gnu dot org [this message] 2007-02-03 17:22 ` [Bug c++/27732] [4.0 " gdr 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=20061016232523.14860.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).