public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49896] undefined reference to static const integral member whose address is not used, for some values of the constant
Date: Tue, 11 Oct 2011 17:54:00 -0000	[thread overview]
Message-ID: <bug-49896-4-vvCrOqHe9H@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49896-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 17:53:20 UTC ---
Author: jason
Date: Tue Oct 11 17:53:07 2011
New Revision: 179813

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179813
Log:
    PR c++/49855
    PR c++/49896
    * cp-tree.def (IMPLICIT_CONV_EXPR): New.
    * call.c (perform_implicit_conversion_flags): Build it
    instead of NOP_EXPR.
    * cp-objcp-common.c (cp_common_init_ts): It's typed.
    * cxx-pretty-print.c (pp_cxx_cast_expression): Handle it.
    (pp_cxx_expression): Likewise.
    * error.c (dump_expr): Likewise.
    * semantics.c (potential_constant_expression_1): Likewise.
    * tree.c (cp_tree_equal): Likewise.
    (cp_walk_subtrees): Likewise.
    * pt.c (iterative_hash_template_arg): Likewise.
    (for_each_template_parm_r): Likewise.
    (type_dependent_expression_p): Likewise.
    (tsubst_copy, tsubst_copy_and_build): Handle IMPLICIT_CONV_EXPR
    and CONVERT_EXPR.
    * cp-tree.h (IMPLICIT_CONV_EXPR_DIRECT_INIT): New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-template3.C
    trunk/gcc/testsuite/g++.dg/template/constant1.C
    trunk/gcc/testsuite/g++.dg/template/constant2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-objcp-common.c
    trunk/gcc/cp/cp-tree.def
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/error.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


  parent reply	other threads:[~2011-10-11 17:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29  7:53 [Bug c++/49896] New: " matthieu.imbert@ens-lyon.fr
2011-07-29 10:06 ` [Bug c++/49896] " rguenth at gcc dot gnu.org
2011-07-29 10:37 ` matthieu.imbert@ens-lyon.fr
2011-07-29 12:50 ` matthieu.imbert@ens-lyon.fr
2011-07-29 17:55 ` harald at gigawatt dot nl
2011-07-30 12:10 ` redi at gcc dot gnu.org
2011-07-30 14:59 ` harald at gigawatt dot nl
2011-10-09 15:23 ` paolo.carlini at oracle dot com
2011-10-09 21:07 ` jason at gcc dot gnu.org
2011-10-11 17:54 ` jason at gcc dot gnu.org [this message]
2011-10-11 18:19 ` jason at gcc dot gnu.org
2011-10-11 18:22 ` jason 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=bug-49896-4-vvCrOqHe9H@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).