PR c++/68810 - wrong location for reinterpret_cast error.
authorJason Merrill <jason@redhat.com>
Mon, 29 Jan 2018 20:56:00 +0000 (15:56 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 29 Jan 2018 20:56:00 +0000 (15:56 -0500)
commitdcbb27dd3f494812c89b530b7dcf06cfad2ff10b
treef1222d8a891ce6f9603dc2865e26bbb939e11429
parentb07c365100c92687361aa062ecf89c49650b8930
PR c++/68810 - wrong location for reinterpret_cast error.

* cvt.c (cp_convert_to_pointer): Always build a CONVERT_EXPR when
!dofold.

From-SVN: r257161
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C