public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66210] New: Variable template specialization does not work with alias-declarations
@ 2015-05-20 0:06 bruno.manga95 at gmail dot com
2015-05-20 0:19 ` [Bug c++/66210] " bruno.manga95 at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bruno.manga95 at gmail dot com @ 2015-05-20 0:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66210
Bug ID: 66210
Summary: Variable template specialization does not work with
alias-declarations
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bruno.manga95 at gmail dot com
Target Milestone: ---
Created attachment 35571
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35571&action=edit
testcase
In code such as the following, alias-declarations causes a variable to be
instantatiated from the non-specialized variable template
using resultType = const char*;
template<typename T>
T pi = (T)(3.1415926535897932385);
template<>
resultType pi<resultType> = "pi";
NOTE: using a typedef does not generate the same error and the code compiles
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/66210] Variable template specialization does not work with alias-declarations
2015-05-20 0:06 [Bug c++/66210] New: Variable template specialization does not work with alias-declarations bruno.manga95 at gmail dot com
@ 2015-05-20 0:19 ` bruno.manga95 at gmail dot com
2015-05-21 19:22 ` daniel.kruegler at googlemail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bruno.manga95 at gmail dot com @ 2015-05-20 0:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66210
Bruno Manganelli <bruno.manga95 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |normal
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/66210] Variable template specialization does not work with alias-declarations
2015-05-20 0:06 [Bug c++/66210] New: Variable template specialization does not work with alias-declarations bruno.manga95 at gmail dot com
2015-05-20 0:19 ` [Bug c++/66210] " bruno.manga95 at gmail dot com
@ 2015-05-21 19:22 ` daniel.kruegler at googlemail dot com
2015-05-21 22:35 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2015-05-21 19:22 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 5179 bytes --]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66210
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The problem seems to be fixed in gcc HEAD 6.0.0 20150521 (experimental).
>From gcc-bugs-return-487002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 21 19:31:23 2015
Return-Path: <gcc-bugs-return-487002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80179 invoked by alias); 21 May 2015 19:31:23 -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 76250 invoked by uid 48); 21 May 2015 19:31:19 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66243] enum class value is allowed to be initialized by value from other enum class
Date: Thu, 21 May 2015 19:31: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: 5.1.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
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-66243-4-sU1NlAyeeH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66243-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66243-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-05/txt/msg01842.txt.bz2
Content-length: 540
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66243
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The problem also occurs in gcc HEAD 6.0.0 20150521 (experimental).
>From gcc-bugs-return-487003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 21 20:06:11 2015
Return-Path: <gcc-bugs-return-487003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61757 invoked by alias); 21 May 2015 20:06:11 -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 61741 invoked by uid 48); 21 May 2015 20:06:07 -0000
From: "miyuki at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/66237] [6 regression] FAIL: gcc.dg/tree-prof/pr34999.c compilation, -fprofile-use -D_PROFILE_USE (internal compiler error)
Date: Thu, 21 May 2015 20:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: miyuki at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: miyuki at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-66237-4-iNuaB2LuOe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66237-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66237-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-05/txt/msg01843.txt.bz2
Content-length: 321
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf237
--- Comment #4 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
Created attachment 35593
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id5593&actioníit
Proposed patch
Please try this patch. I tested it on the attached profile and it seems to fix
the ICE.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/66210] Variable template specialization does not work with alias-declarations
2015-05-20 0:06 [Bug c++/66210] New: Variable template specialization does not work with alias-declarations bruno.manga95 at gmail dot com
2015-05-20 0:19 ` [Bug c++/66210] " bruno.manga95 at gmail dot com
2015-05-21 19:22 ` daniel.kruegler at googlemail dot com
@ 2015-05-21 22:35 ` paolo.carlini at oracle dot com
2015-05-21 22:40 ` paolo.carlini at oracle dot com
2015-05-21 22:40 ` paolo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-05-21 22:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66210
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks Daniel, I'm adding a testcase and closing the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/66210] Variable template specialization does not work with alias-declarations
2015-05-20 0:06 [Bug c++/66210] New: Variable template specialization does not work with alias-declarations bruno.manga95 at gmail dot com
` (2 preceding siblings ...)
2015-05-21 22:35 ` paolo.carlini at oracle dot com
@ 2015-05-21 22:40 ` paolo.carlini at oracle dot com
2015-05-21 22:40 ` paolo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-05-21 22:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66210
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |6.0
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/66210] Variable template specialization does not work with alias-declarations
2015-05-20 0:06 [Bug c++/66210] New: Variable template specialization does not work with alias-declarations bruno.manga95 at gmail dot com
` (3 preceding siblings ...)
2015-05-21 22:40 ` paolo.carlini at oracle dot com
@ 2015-05-21 22:40 ` paolo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-05-21 22:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66210
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu May 21 22:39:32 2015
New Revision: 223506
URL: https://gcc.gnu.org/viewcvs?rev=223506&root=gcc&view=rev
Log:
2015-05-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66210
* g++.dg/cpp1y/var-templ28.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ28.C
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-05-21 22:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-20 0:06 [Bug c++/66210] New: Variable template specialization does not work with alias-declarations bruno.manga95 at gmail dot com
2015-05-20 0:19 ` [Bug c++/66210] " bruno.manga95 at gmail dot com
2015-05-21 19:22 ` daniel.kruegler at googlemail dot com
2015-05-21 22:35 ` paolo.carlini at oracle dot com
2015-05-21 22:40 ` paolo.carlini at oracle dot com
2015-05-21 22:40 ` paolo 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).