public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13242] New: Incorrect mangling of template reference parameters
@ 2003-11-30 18:03 nathan at gcc dot gnu dot org
2003-12-01 6:47 ` [Bug c++/13242] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-11-30 18:03 UTC (permalink / raw)
To: gcc-bugs
extern int N;
template <int &> struct S {};
void n (S<N>) {}
// g++ mangles as _Z1n1SIXadL_Z1NEEE
This should be _Z1n1SIL_Z1NEE (or possibly _Z1n1SIXL_Z1NEEE)
--
Summary: Incorrect mangling of template reference parameters
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nathan at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: -
GCC host triplet: -
GCC target triplet: -
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13242
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/13242] Incorrect mangling of template reference parameters
2003-11-30 18:03 [Bug c++/13242] New: Incorrect mangling of template reference parameters nathan at gcc dot gnu dot org
@ 2003-12-01 6:47 ` pinskia at gcc dot gnu dot org
2003-12-15 14:35 ` [Bug c++/13242] [ABI] " nathan at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-01 6:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-01 06:47 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-12-01 06:47:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13242
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/13242] [ABI] Incorrect mangling of template reference parameters
2003-11-30 18:03 [Bug c++/13242] New: Incorrect mangling of template reference parameters nathan at gcc dot gnu dot org
2003-12-01 6:47 ` [Bug c++/13242] " pinskia at gcc dot gnu dot org
@ 2003-12-15 14:35 ` nathan at gcc dot gnu dot org
2003-12-16 10:08 ` nathan at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-12-15 14:35 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13242
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/13242] [ABI] Incorrect mangling of template reference parameters
2003-11-30 18:03 [Bug c++/13242] New: Incorrect mangling of template reference parameters nathan at gcc dot gnu dot org
2003-12-01 6:47 ` [Bug c++/13242] " pinskia at gcc dot gnu dot org
2003-12-15 14:35 ` [Bug c++/13242] [ABI] " nathan at gcc dot gnu dot org
@ 2003-12-16 10:08 ` nathan at gcc dot gnu dot org
2003-12-16 11:01 ` cvs-commit at gcc dot gnu dot org
2003-12-16 18:28 ` dhazeghi at yahoo dot com
4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-12-16 10:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2003-12-16 10:02 -------
2003-12-16 Nathan Sidwell <nathan@codesourcery.com>
PR c++/13242
C++ ABI change. Mangling template parameters of reference type
* mangle.c (write_template_args): Remove unreachable code.
(write_template_arg): Look through an argument of reference type.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13242
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/13242] [ABI] Incorrect mangling of template reference parameters
2003-11-30 18:03 [Bug c++/13242] New: Incorrect mangling of template reference parameters nathan at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-12-16 10:08 ` nathan at gcc dot gnu dot org
@ 2003-12-16 11:01 ` cvs-commit at gcc dot gnu dot org
2003-12-16 18:28 ` dhazeghi at yahoo dot com
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-16 11:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-16 10:04 -------
Subject: Bug 13242
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2003-12-16 10:03:54
Modified files:
gcc/cp : ChangeLog mangle.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/abi: mangle19-1.C mangle19-2.C
Log message:
cp:
PR c++/13242
C++ ABI change. Mangling template parameters of reference type
* mangle.c (write_template_args): Remove unreachable code.
(write_template_arg): Look through an argument of reference type.
testsuite:
PR c++/13242
* g++.dg/abi/mangle19-1.C: New test.
* g++.dg/abi/mangle19-2.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3808&r2=1.3809
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/mangle.c.diff?cvsroot=gcc&r1=1.92&r2=1.93
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3265&r2=1.3266
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/abi/mangle19-1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/abi/mangle19-2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13242
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/13242] [ABI] Incorrect mangling of template reference parameters
2003-11-30 18:03 [Bug c++/13242] New: Incorrect mangling of template reference parameters nathan at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-12-16 11:01 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-16 18:28 ` dhazeghi at yahoo dot com
4 siblings, 0 replies; 6+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-16 18:28 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13242
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-12-16 18:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-30 18:03 [Bug c++/13242] New: Incorrect mangling of template reference parameters nathan at gcc dot gnu dot org
2003-12-01 6:47 ` [Bug c++/13242] " pinskia at gcc dot gnu dot org
2003-12-15 14:35 ` [Bug c++/13242] [ABI] " nathan at gcc dot gnu dot org
2003-12-16 10:08 ` nathan at gcc dot gnu dot org
2003-12-16 11:01 ` cvs-commit at gcc dot gnu dot org
2003-12-16 18:28 ` dhazeghi at yahoo 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).