public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60686] New: message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11
@ 2014-03-27 15:09 a.gronchi at nextworks dot it
2014-03-27 15:24 ` [Bug c++/60686] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: a.gronchi at nextworks dot it @ 2014-03-27 15:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60686
Bug ID: 60686
Summary: message " only declarations of constructors can be
‘explicit’ " now conflicting with C++11
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: a.gronchi at nextworks dot it
The error message:
error: only declarations of constructors can be ‘explicit’
today conflicts with C++11, which also allows conversion operators to be marked
explicit.
Sample code:
struct A {
explicit operator int() const;
};
explicit inline A::operator int() const { return 1; }
Here the second occurrence of the "explicit" keyword is illegal, but the
reported error message leads one to think about GCC lacking support for
explicit conversion operators.
Reproducible with GCC 4.8.2:
Using built-in specs.
COLLECT_GCC=g++-4.8.2
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.8.2-r1/work/gcc-4.8.2/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.8.2-r1 p1.4-ssptest, pie-0.5.9-ssptest'
--enable-libstdcxx-time --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-multilib
--with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point
--enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap
--disable-libssp --enable-lto --without-cloog
Thread model: posix
gcc version 4.8.2 (Gentoo 4.8.2-r1 p1.4-ssptest, pie-0.5.9-ssptest)
>From gcc-bugs-return-447642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 27 15:21:38 2014
Return-Path: <gcc-bugs-return-447642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14793 invoked by alias); 27 Mar 2014 15:21:37 -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 14754 invoked by uid 48); 27 Mar 2014 15:21:34 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60685] exception not caught by enclosing catch
Date: Thu, 27 Mar 2014 15:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
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: cc
Message-ID: <bug-60685-4-G083HW6vvT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60685-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60685-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-03/txt/msg02511.txt.bz2
Content-length: 625
http://gcc.gnu.org/bugzilla/show_bug.cgi?id`685
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
When an exception is thrown in an NSDMI we unwind the stack in
_Unwind_RaiseException but reach:
101 if (code == _URC_END_OF_STACK)
102 /* Hit end of stack with no handler found. */
103 return _URC_END_OF_STACK;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60686] message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11
2014-03-27 15:09 [Bug c++/60686] New: message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11 a.gronchi at nextworks dot it
@ 2014-03-27 15:24 ` redi at gcc dot gnu.org
2014-07-07 14:29 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-27 15:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60686
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-03-27
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed, it should probably just say "only declarations can be marked
explicit"
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60686] message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11
2014-03-27 15:09 [Bug c++/60686] New: message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11 a.gronchi at nextworks dot it
2014-03-27 15:24 ` [Bug c++/60686] " redi at gcc dot gnu.org
@ 2014-07-07 14:29 ` paolo.carlini at oracle dot com
2014-07-09 22:46 ` paolo.carlini at oracle dot com
2015-03-27 11:31 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-07-07 14:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60686
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60686] message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11
2014-03-27 15:09 [Bug c++/60686] New: message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11 a.gronchi at nextworks dot it
2014-03-27 15:24 ` [Bug c++/60686] " redi at gcc dot gnu.org
2014-07-07 14:29 ` paolo.carlini at oracle dot com
@ 2014-07-09 22:46 ` paolo.carlini at oracle dot com
2015-03-27 11:31 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-07-09 22:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60686
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org
Target Milestone|--- |4.10.0
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.10.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60686] message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11
2014-03-27 15:09 [Bug c++/60686] New: message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11 a.gronchi at nextworks dot it
` (2 preceding siblings ...)
2014-07-09 22:46 ` paolo.carlini at oracle dot com
@ 2015-03-27 11:31 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-27 11:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60686
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arvo at me dot com
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 65598 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-27 11:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 15:09 [Bug c++/60686] New: message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11 a.gronchi at nextworks dot it
2014-03-27 15:24 ` [Bug c++/60686] " redi at gcc dot gnu.org
2014-07-07 14:29 ` paolo.carlini at oracle dot com
2014-07-09 22:46 ` paolo.carlini at oracle dot com
2015-03-27 11:31 ` 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).