public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61491] New: An explicit specialization of a member enumeration of a class template is rejected
@ 2014-06-12 21:41 ville.voutilainen at gmail dot com
2014-06-12 21:57 ` [Bug c++/61491] " ville.voutilainen at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-06-12 21:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61491
Bug ID: 61491
Summary: An explicit specialization of a member enumeration of
a class template is rejected
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ville.voutilainen at gmail dot com
#include <iostream>
template <class D> struct Base
{
enum class E : unsigned;
E e;
Base(E e) : e(e) {}
};
struct X;
template<> enum class Base<X>::E : unsigned { a, b };
struct X : Base<X>
{
X() : Base<X>(E::b) {}
};
int main()
{
X x;
std::cout << static_cast<unsigned>(x.e) << std::endl;
}
[ville@localhost ~]$ g++ --std=c++11 -pedantic -o plash plash.cpp
plash.cpp:12:52: warning: template specialization of ‘enum class Base<X>::E’
not allowed by ISO C++ [-Wpedantic]
template<> enum class Base<X>::E : unsigned { a, b };
^
Clang accepts the code.
>From gcc-bugs-return-454063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 12 21:55:44 2014
Return-Path: <gcc-bugs-return-454063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23952 invoked by alias); 12 Jun 2014 21:55:44 -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 23900 invoked by uid 48); 12 Jun 2014 21:55:41 -0000
From: "davejohansen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60731] [4.7/4.8/4.9 Regression] dynamic library not getting reinitialized on multiple calls to dlopen()
Date: Thu, 12 Jun 2014 21:55: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: davejohansen at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60731-4-pNFigz1DbW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60731-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60731-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-06/txt/msg01145.txt.bz2
Content-length: 269
https://gcc.gnu.org/bugzilla/show_bug.cgi?id`731
--- Comment #11 from Dave Johansen <davejohansen at gmail dot com> ---
Can this please be reopened? It was determined in the glibc bugzilla that this
is a gcc problem because of the incorrect setting of unique flag.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/61491] An explicit specialization of a member enumeration of a class template is rejected
2014-06-12 21:41 [Bug c++/61491] New: An explicit specialization of a member enumeration of a class template is rejected ville.voutilainen at gmail dot com
@ 2014-06-12 21:57 ` ville.voutilainen at gmail dot com
2014-12-14 16:46 ` redi at gcc dot gnu.org
2015-07-09 15:14 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-06-12 21:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61491
--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
This is part of DR1206:
http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#1206
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/61491] An explicit specialization of a member enumeration of a class template is rejected
2014-06-12 21:41 [Bug c++/61491] New: An explicit specialization of a member enumeration of a class template is rejected ville.voutilainen at gmail dot com
2014-06-12 21:57 ` [Bug c++/61491] " ville.voutilainen at gmail dot com
@ 2014-12-14 16:46 ` redi at gcc dot gnu.org
2015-07-09 15:14 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2014-12-14 16:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61491
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-12-14
Ever confirmed|0 |1
Known to fail|4.10.0 |5.0
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Looks like we just need to remove the pedwarn.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/61491] An explicit specialization of a member enumeration of a class template is rejected
2014-06-12 21:41 [Bug c++/61491] New: An explicit specialization of a member enumeration of a class template is rejected ville.voutilainen at gmail dot com
2014-06-12 21:57 ` [Bug c++/61491] " ville.voutilainen at gmail dot com
2014-12-14 16:46 ` redi at gcc dot gnu.org
@ 2015-07-09 15:14 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-07-09 15:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61491
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 #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-09 15:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 21:41 [Bug c++/61491] New: An explicit specialization of a member enumeration of a class template is rejected ville.voutilainen at gmail dot com
2014-06-12 21:57 ` [Bug c++/61491] " ville.voutilainen at gmail dot com
2014-12-14 16:46 ` redi at gcc dot gnu.org
2015-07-09 15:14 ` paolo.carlini at oracle dot com
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).