public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/64560] New: [5 Regression] building libstdc++ with -fno-rtti fails in new cxx11-shim-facets.cc file
@ 2015-01-11 13:11 redi at gcc dot gnu.org
  2015-01-11 13:11 ` [Bug libstdc++/64560] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-11 13:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64560

            Bug ID: 64560
           Summary: [5 Regression] building libstdc++ with -fno-rtti fails
                    in new cxx11-shim-facets.cc file
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org

Someone on IRC pointed out that the build fails when configuring with
--enable-cxx-flags=-fno-rtti 

In file included from
/home/jwakely/src/gcc/libstdc++-v3/src/c++11/cow-shim_facets.cc:35:0:
/home/jwakely/src/gcc/libstdc++-v3/src/c++11/cxx11-shim_facets.cc: In member
function ‘const std::locale::facet* std::locale::facet::_M_cow_shim(const
std::locale::id*) const’:
/home/jwakely/src/gcc/libstdc++-v3/src/c++11/cxx11-shim_facets.cc:772:51:
error: ‘dynamic_cast’ not permitted with -fno-rtti
     if (auto* p = dynamic_cast<const __shim*>(this))
                                                   ^
>From gcc-bugs-return-472715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jan 11 15:23:34 2015
Return-Path: <gcc-bugs-return-472715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31524 invoked by alias); 11 Jan 2015 15:23:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31504 invoked by uid 48); 11 Jan 2015 15:23:27 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/64560] [5 Regression] building libstdc++ with -fno-rtti fails in new cxx11-shim-facets.cc file
Date: Sun, 11 Jan 2015 15:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64560-4-hYDIrBFhLU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64560-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64560-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg00709.txt.bz2
Content-length: 570

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd560

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
--- a/libstdc++-v3/src/c++11/cxx11-shim_facets.cc
+++ b/libstdc++-v3/src/c++11/cxx11-shim_facets.cc
@@ -768,9 +768,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   {
     using namespace __facet_shims;

+#if __cpp_rtti
     // If this is already a shim just use its underlying facet.
     if (auto* p = dynamic_cast<const __shim*>(this))
       return p->_M_get();
+#endif

     if (which == &numpunct<char>::id)
       return new numpunct_shim<char>{this};


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-12 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-11 13:11 [Bug libstdc++/64560] New: [5 Regression] building libstdc++ with -fno-rtti fails in new cxx11-shim-facets.cc file redi at gcc dot gnu.org
2015-01-11 13:11 ` [Bug libstdc++/64560] " redi at gcc dot gnu.org
2015-01-12  9:35 ` rguenth at gcc dot gnu.org
2015-01-12 21:46 ` redi at gcc dot gnu.org
2015-01-12 21:47 ` redi at gcc dot gnu.org

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).