public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/62264] New: std::experimental::string_view won't compile with -pedantic-errors
@ 2014-08-26  8:27 tnozicka at gmail dot com
  2014-08-26 10:05 ` [Bug libstdc++/62264] " redi at gcc dot gnu.org
  2014-08-26 11:23 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: tnozicka at gmail dot com @ 2014-08-26  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 62264
           Summary: std::experimental::string_view won't compile with
                    -pedantic-errors
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tnozicka at gmail dot com

std::experimental::string_view won't compile with -pedantic-errors


SOURCE:
#include <experimental/string_view>

int main()
{
    return 0;
}


COMPILE OK: (this works)
/opt/szn/bin/g++-4.9 -std=c++14  -Wall -Wextra -o program main.cpp

COMPILE ERROR:
/opt/szn/bin/g++-4.9 -std=c++14 -pedantic-errors -Wall -Wextra -o program
main.cpp

results in:

In file included from /opt/szn/include/c++/4.9/experimental/string_view:704:0,
                 from main.cpp:1:
/opt/szn/include/c++/4.9/experimental/string_view.tcc:56:69: error: declaration
of ‘std::experimental::basic_string_view<_CharT, _Traits>::size_type
std::experimental::basic_string_view<_CharT, _Traits>::find(const _CharT*,
std::experimental::basic_string_view<_CharT, _Traits>::size_type,
std::experimental::basic_string_view<_CharT, _Traits>::size_type) const
noexcept’ has a different exception specifier
     find(const _CharT* __str, size_type __pos, size_type __n) const noexcept
                                                                     ^
In file included from main.cpp:1:0:
/opt/szn/include/c++/4.9/experimental/string_view:332:7: error: from previous
declaration ‘std::experimental::basic_string_view<_CharT, _Traits>::size_type
std::experimental::basic_string_view<_CharT, _Traits>::find(const _CharT*,
std::experimental::basic_string_view<_CharT, _Traits>::size_type,
std::experimental::basic_string_view<_CharT, _Traits>::size_type) const’
       find(const _CharT* __str, size_type __pos, size_type __n) const;
       ^
In file included from /opt/szn/include/c++/4.9/experimental/string_view:704:0,
                 from main.cpp:1:
/opt/szn/include/c++/4.9/experimental/string_view.tcc:93:70: error: declaration
of ‘std::experimental::basic_string_view<_CharT, _Traits>::size_type
std::experimental::basic_string_view<_CharT, _Traits>::rfind(const _CharT*,
std::experimental::basic_string_view<_CharT, _Traits>::size_type,
std::experimental::basic_string_view<_CharT, _Traits>::size_type) const
noexcept’ has a different exception specifier
     rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept
                                                                      ^
In file included from main.cpp:1:0:
/opt/szn/include/c++/4.9/experimental/string_view:346:7: error: from previous
declaration ‘std::experimental::basic_string_view<_CharT, _Traits>::size_type
std::experimental::basic_string_view<_CharT, _Traits>::rfind(const _CharT*,
std::experimental::basic_string_view<_CharT, _Traits>::size_type,
std::experimental::basic_string_view<_CharT, _Traits>::size_type) const’
       rfind(const _CharT* __str, size_type __pos, size_type __n) const;
       ^



GCC configuration:
Using built-in specs.
COLLECT_GCC=/opt/szn/bin/g++-4.9
COLLECT_LTO_WRAPPER=/opt/szn/lib/gcc/x86_64-linux-gnu/4.9.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: /home/tomas/packages/gcc/gcc-4.9.1/configure --prefix=/opt/szn
--program-suffix=-4.9 --enable-languages=c++ --disable-multilib --enable-shared
--enable-threads=posix --enable-checking=release --enable-__cxa_atexit
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu --enable-plugin --with-tune=generic
--enable-libstdcxx-time=yes --enable-libstdcxx-debug
--enable-version-specific-runtime-libs --enable-objc-gc --enable-clocale=gnu
--disable-install-libiberty --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu --libdir=/opt/szn/lib --libexecdir=/opt/szn/lib
--infodir=/opt/szn/share/info-gcc-4.9 --localedir=/opt/szn/share/locale-gcc-4.9
--mandir=/opt/szn/share/man-gcc-4.9
--with-gxx-include-dir=/opt/szn/include/c++/4.9
Thread model: posix
gcc version 4.9.1 (GCC)
>From gcc-bugs-return-459228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 26 09:14:40 2014
Return-Path: <gcc-bugs-return-459228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8210 invoked by alias); 26 Aug 2014 09:14:38 -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 7804 invoked by uid 48); 26 Aug 2014 09:14:24 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/62265] New: [4.8/4.9/5.0 regression] FAIL: gcc.dg/20111227-2.c scan-rtl-dump ree "Elimination opportunities = 3 realized = 3"
Date: Tue, 26 Aug 2014 09:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc cf_gcctarget
Message-ID: <bug-62265-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: 2014-08/txt/msg01725.txt.bz2
Content-length: 738

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

            Bug ID: 62265
           Summary: [4.8/4.9/5.0 regression] FAIL: gcc.dg/20111227-2.c
                    scan-rtl-dump ree "Elimination opportunities = 3
                    realized = 3"
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
                CC: tejohnson at gcc dot gnu.org
            Target: ia64-*-*, m68k-*-*, s390x-*-*, powerpc64-*-*, avr-*-*

This test is failing on a couple of architectures, but it was never actually
performed until r214433.


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

* [Bug libstdc++/62264] std::experimental::string_view won't compile with -pedantic-errors
  2014-08-26  8:27 [Bug libstdc++/62264] New: std::experimental::string_view won't compile with -pedantic-errors tnozicka at gmail dot com
@ 2014-08-26 10:05 ` redi at gcc dot gnu.org
  2014-08-26 11:23 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2014-08-26 10:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-08-26
      Known to work|                            |5.0
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I already fixed this on the trunk, I'll backport it to the 4.9 branch.


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

* [Bug libstdc++/62264] std::experimental::string_view won't compile with -pedantic-errors
  2014-08-26  8:27 [Bug libstdc++/62264] New: std::experimental::string_view won't compile with -pedantic-errors tnozicka at gmail dot com
  2014-08-26 10:05 ` [Bug libstdc++/62264] " redi at gcc dot gnu.org
@ 2014-08-26 11:23 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2014-08-26 11:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Aug 26 11:23:21 2014
New Revision: 214500

URL: https://gcc.gnu.org/viewcvs?rev=214500&root=gcc&view=rev
Log:
    PR libstdc++/62264
    * include/experimental/string_view: Fix inconsistent exception specs.

Modified:
    branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_9-branch/libstdc++-v3/include/experimental/string_view


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

end of thread, other threads:[~2014-08-26 11:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-26  8:27 [Bug libstdc++/62264] New: std::experimental::string_view won't compile with -pedantic-errors tnozicka at gmail dot com
2014-08-26 10:05 ` [Bug libstdc++/62264] " redi at gcc dot gnu.org
2014-08-26 11:23 ` 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).