* [Bug c++/63658] [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
@ 2014-10-27 15:28 ` redi at gcc dot gnu.org
2014-10-27 15:37 ` [Bug c++/63658] [4.9/5 " redi at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2014-10-27 15:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9/5 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
2014-10-27 15:28 ` [Bug c++/63658] " redi at gcc dot gnu.org
@ 2014-10-27 15:37 ` redi at gcc dot gnu.org
2014-10-27 20:46 ` daniel.kruegler at googlemail dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2014-10-27 15:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-10-27
Summary|[4.8/4.9 Regression] Using |[4.9/5 Regression] Using
|class reference as template |class reference as template
|parameter causes |parameter causes
|compilation to fail |compilation to fail
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9/5 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
2014-10-27 15:28 ` [Bug c++/63658] " redi at gcc dot gnu.org
2014-10-27 15:37 ` [Bug c++/63658] [4.9/5 " redi at gcc dot gnu.org
@ 2014-10-27 20:46 ` daniel.kruegler at googlemail dot com
2014-10-28 9:05 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2014-10-27 20:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
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 not to depend on the friend declaration, therefore a more
reduced example code can be formed:
//------------------
struct Descriptor {};
template <Descriptor & D>
struct foo
{
void size ();
};
Descriptor g_descriptor = {};
template<> void foo<g_descriptor>::size()
{
}
//------------------
>From gcc-bugs-return-465093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 27 20:46:38 2014
Return-Path: <gcc-bugs-return-465093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29715 invoked by alias); 27 Oct 2014 20:46: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 29247 invoked by uid 48); 27 Oct 2014 20:46:32 -0000
From: "izamyatin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63534] [5 Regression] Bootstrap failure on x86_64/i686-linux
Date: Mon, 27 Oct 2014 21:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: izamyatin at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63534-4-MVBjUDGu8B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63534-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63534-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-10/txt/msg02114.txt.bz2
Content-length: 158
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc534
--- Comment #49 from Igor Zamyatin <izamyatin at gmail dot com> ---
Testing a patch to fix asan failures
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9/5 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (2 preceding siblings ...)
2014-10-27 20:46 ` daniel.kruegler at googlemail dot com
@ 2014-10-28 9:05 ` rguenth at gcc dot gnu.org
2014-10-30 10:43 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-28 9:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9/5 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (3 preceding siblings ...)
2014-10-28 9:05 ` rguenth at gcc dot gnu.org
@ 2014-10-30 10:43 ` jakub at gcc dot gnu.org
2014-11-21 0:48 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-30 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.2 |4.9.3
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.2 has been released.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9/5 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (4 preceding siblings ...)
2014-10-30 10:43 ` jakub at gcc dot gnu.org
@ 2014-11-21 0:48 ` jason at gcc dot gnu.org
2014-11-24 13:39 ` [Bug c++/63658] [4.9 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-11-21 0:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Nov 21 00:47:50 2014
New Revision: 217900
URL: https://gcc.gnu.org/viewcvs?rev=217900&root=gcc&view=rev
Log:
PR c++/63658
* pt.c (convert_nontype_argument): Call convert_from_reference.
(check_instantiated_arg): Don't be confused by reference refs.
(unify): Look through reference refs on the arg, too.
* mangle.c (write_template_arg): Look through reference refs.
Added:
trunk/gcc/testsuite/g++.dg/template/ref9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/mangle.c
trunk/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (5 preceding siblings ...)
2014-11-21 0:48 ` jason at gcc dot gnu.org
@ 2014-11-24 13:39 ` rguenth at gcc dot gnu.org
2014-11-24 16:55 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-24 13:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |5.0
Summary|[4.9/5 Regression] Using |[4.9 Regression] Using
|class reference as template |class reference as template
|parameter causes |parameter causes
|compilation to fail |compilation to fail
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (6 preceding siblings ...)
2014-11-24 13:39 ` [Bug c++/63658] [4.9 " rguenth at gcc dot gnu.org
@ 2014-11-24 16:55 ` rguenth at gcc dot gnu.org
2015-01-07 15:18 ` jason at gcc dot gnu.org
2015-01-20 11:23 ` paolo.carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-24 16:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (7 preceding siblings ...)
2014-11-24 16:55 ` rguenth at gcc dot gnu.org
@ 2015-01-07 15:18 ` jason at gcc dot gnu.org
2015-01-20 11:23 ` paolo.carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-07 15:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jan 7 15:17:59 2015
New Revision: 219305
URL: https://gcc.gnu.org/viewcvs?rev=219305&root=gcc&view=rev
Log:
PR c++/63658
* pt.c (convert_nontype_argument): Call convert_from_reference.
(check_instantiated_arg): Don't be confused by reference refs.
(unify): Look through reference refs on the arg, too.
* mangle.c (write_template_arg): Look through reference refs.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/ref9.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/mangle.c
branches/gcc-4_9-branch/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
2014-10-27 15:20 [Bug c++/63658] New: [4.8/4.9 Regression] Using class reference as template parameter causes compilation to fail patrick.riphagen at xsens dot com
` (8 preceding siblings ...)
2015-01-07 15:18 ` jason at gcc dot gnu.org
@ 2015-01-20 11:23 ` paolo.carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-01-20 11:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed then.
^ permalink raw reply [flat|nested] 11+ messages in thread