public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jeffp at doomsday dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/26205] pointer to member template parameter can't be null Date: Wed, 15 Feb 2006 19:55:00 -0000 [thread overview] Message-ID: <20060215195555.3815.qmail@sourceware.org> (raw) In-Reply-To: <bug-26205-12166@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from jeffp at doomsday dot org 2006-02-15 19:55 ------- The casting work-around doesn't compile under GCC. It requires that the template parameter be a constant-expression (which is true), which results in the following error: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression I have yet to be able to figure out a work-around. MSVC allows the cast, but works with or without it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26205
next prev parent reply other threads:[~2006-02-15 19:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-02-10 1:08 [Bug c++/26205] New: " jeffp at doomsday dot org 2006-02-10 1:19 ` [Bug c++/26205] " pinskia at gcc dot gnu dot org 2006-02-15 19:37 ` bangerth at dealii dot org 2006-02-15 19:55 ` jeffp at doomsday dot org [this message] [not found] <bug-26205-4@http.gcc.gnu.org/bugzilla/> 2013-11-15 18:05 ` paolo.carlini at oracle dot com
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=20060215195555.3815.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).