public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13241] New: Incorrect mangling of template arguments
@ 2003-11-30 18:01 nathan at gcc dot gnu dot org
2003-11-30 19:11 ` [Bug c++/13241] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-11-30 18:01 UTC (permalink / raw)
To: gcc-bugs
extern "C" void Foo ();
namespace NMS
{
extern "C" int V;
}
template <void (*)()> struct S {};
template <int *> struct T {};
void f (S<Foo>){} // should be _Z1f1SIXadL_Z3FooEEE
void g (T<&NMS::V>){} // should be _Z1g1TIXadL_Z1VEEE
--
Summary: Incorrect mangling of template arguments
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=13241
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13241] Incorrect mangling of template arguments
2003-11-30 18:01 [Bug c++/13241] New: Incorrect mangling of template arguments nathan at gcc dot gnu dot org
@ 2003-11-30 19:11 ` pinskia at gcc dot gnu dot org
2003-12-08 13:50 ` nathan at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-30 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-30 19:11 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2003-11-30 19:11:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13241
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13241] Incorrect mangling of template arguments
2003-11-30 18:01 [Bug c++/13241] New: Incorrect mangling of template arguments nathan at gcc dot gnu dot org
2003-11-30 19:11 ` [Bug c++/13241] " pinskia at gcc dot gnu dot org
@ 2003-12-08 13:50 ` nathan at gcc dot gnu dot org
2003-12-15 11:53 ` [Bug c++/13241] [ABI] " nathan at gcc dot gnu dot org
2003-12-15 11:57 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-12-08 13:50 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=13241
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13241] [ABI] Incorrect mangling of template arguments
2003-11-30 18:01 [Bug c++/13241] New: Incorrect mangling of template arguments nathan at gcc dot gnu dot org
2003-11-30 19:11 ` [Bug c++/13241] " pinskia at gcc dot gnu dot org
2003-12-08 13:50 ` nathan at gcc dot gnu dot org
@ 2003-12-15 11:53 ` nathan at gcc dot gnu dot org
2003-12-15 11:57 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-12-15 11:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2003-12-15 11:53 -------
2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
PR c++/13241
C++ ABI change. Mangling of symbols in expressions.
* mangle.c (write_mangled_name): Add top_level flag. Rework for
nested and unnested mangling. Deal with abi version 1 and version
2 differences.
(write_expression): Adjust write_mangled_name call.
(mangle_decl_string): Use write_mangled_name for all non-type decls.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13241
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13241] [ABI] Incorrect mangling of template arguments
2003-11-30 18:01 [Bug c++/13241] New: Incorrect mangling of template arguments nathan at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-12-15 11:53 ` [Bug c++/13241] [ABI] " nathan at gcc dot gnu dot org
@ 2003-12-15 11:57 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-15 11:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-15 11:57 -------
Subject: Bug 13241
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2003-12-15 11:57:30
Modified files:
gcc/cp : ChangeLog mangle.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/abi: mangle18-1.C mangle18-2.C
Log message:
cp:
PR c++/13241
C++ ABI change. Mangling of symbols in expressions.
* mangle.c (write_mangled_name): Add top_level flag. Rework for
nested and unnested mangling. Deal with abi version 1 and version
2 differences.
(write_expression): Adjust write_mangled_name call.
(mangle_decl_string): Use write_mangled_name for all non-type decls.
testsuite:
PR c++/13241
* g++.dg/abi/mangle18-1.C: New test.
* g++.dg/abi/mangle18-2.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3800&r2=1.3801
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/mangle.c.diff?cvsroot=gcc&r1=1.91&r2=1.92
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3253&r2=1.3254
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/abi/mangle18-1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/abi/mangle18-2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13241
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-12-15 11:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-30 18:01 [Bug c++/13241] New: Incorrect mangling of template arguments nathan at gcc dot gnu dot org
2003-11-30 19:11 ` [Bug c++/13241] " pinskia at gcc dot gnu dot org
2003-12-08 13:50 ` nathan at gcc dot gnu dot org
2003-12-15 11:53 ` [Bug c++/13241] [ABI] " nathan at gcc dot gnu dot org
2003-12-15 11:57 ` cvs-commit at gcc dot gnu dot 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).