public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
@ 2009-03-03 21:18 ` jason at gcc dot gnu dot org
  2009-03-28 20:55 ` reichelt at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-03-03 21:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jason at gcc dot gnu dot org  2009-03-03 21:18 -------
I've been dealing with mangling issues recently.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|SUSPENDED                   |ASSIGNED
   Last reconfirmed|2006-03-05 03:33:24         |2009-03-03 21:18:02
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
  2009-03-03 21:18 ` [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions jason at gcc dot gnu dot org
@ 2009-03-28 20:55 ` reichelt at gcc dot gnu dot org
  2009-03-28 23:23 ` hjl dot tools at gmail dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-03-28 20:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2009-03-28 20:54 -------
Fixed by Jason's patch

2009-03-17  Jason Merrill  <jason@redhat.com>

        * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
        (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
        * pt.c (check_explicit_specialization): Likewise.
        (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
        local specialization.
        * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
        * decl2.c (parm_index): New fn.
        * semantics.c (finish_decltype_type): Don't use describable_type.
        * mangle.c (write_expression): Likewise.  Mangle ALIGNOF_EXPR.
        Give a sorry for unsupported codes rather than crash.  Mangle
        conversions with other than 1 operand.  New mangling for PARM_DECL.
        * operators.def (ALIGNOF_EXPR): Mangle as "az".


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
  2009-03-03 21:18 ` [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions jason at gcc dot gnu dot org
  2009-03-28 20:55 ` reichelt at gcc dot gnu dot org
@ 2009-03-28 23:23 ` hjl dot tools at gmail dot com
  2009-04-01 16:12 ` hjl dot tools at gmail dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-28 23:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hjl dot tools at gmail dot com  2009-03-28 23:23 -------
It shouldn't be closed without a testcase.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2009-03-28 23:23 ` hjl dot tools at gmail dot com
@ 2009-04-01 16:12 ` hjl dot tools at gmail dot com
  2009-04-01 16:22 ` paolo dot carlini at oracle dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-04-01 16:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl dot tools at gmail dot com  2009-04-01 16:12 -------
Even though the testcase in comment #2 compiles, it fails to link:

tmp/ccsV5xgT.o: In function `main':^M
pr4926-1.C:(.text+0x5): undefined reference to `X<sizeof
((P(((F)())())).array)>::Type foo<F>()'^M
collect2: ld returned 1 exit status^M


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2009-04-01 16:12 ` hjl dot tools at gmail dot com
@ 2009-04-01 16:22 ` paolo dot carlini at oracle dot com
  2009-04-01 18:10 ` hjl at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-01 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from paolo dot carlini at oracle dot com  2009-04-01 16:21 -------
I'm sorry, where is the definition of foo? Of course it doesn't link.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2009-04-01 16:22 ` paolo dot carlini at oracle dot com
@ 2009-04-01 18:10 ` hjl at gcc dot gnu dot org
  2009-04-01 18:11 ` hjl at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-04-01 18:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from hjl at gcc dot gnu dot org  2009-04-01 18:09 -------
Subject: Bug 4926

Author: hjl
Date: Wed Apr  1 18:09:21 2009
New Revision: 145423

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145423
Log:
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/4926
        * g++.dg/template/pr4926-1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/pr4926-1.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2009-04-01 18:10 ` hjl at gcc dot gnu dot org
@ 2009-04-01 18:11 ` hjl at gcc dot gnu dot org
  2009-04-01 18:13 ` hjl dot tools at gmail dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-04-01 18:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from hjl at gcc dot gnu dot org  2009-04-01 18:11 -------
Subject: Bug 4926

Author: hjl
Date: Wed Apr  1 18:10:52 2009
New Revision: 145424

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145424
Log:
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/4926
        * g++.dg/template/pr4926-1.C: New.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/pr4926-1.C
      - copied unchanged from r145423,
trunk/gcc/testsuite/g++.dg/template/pr4926-1.C
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2009-04-01 18:11 ` hjl at gcc dot gnu dot org
@ 2009-04-01 18:13 ` hjl dot tools at gmail dot com
  2009-04-06 15:39 ` jason at redhat dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-04-01 18:13 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]



------- Comment #12 from hjl dot tools at gmail dot com  2009-04-01 18:13 -------
The testcase in the first attachment still failed to compile as of
revision 145378:

[hjl@gnu-6 gcc]$ ./xgcc -B./ -S
/export/gnu/src/gcc-work/gcc/gcc/testsuite/g++.dg/template/foo.ii
/export/gnu/src/gcc-work/gcc/gcc/testsuite/g++.dg/template/foo.ii: In function
‘int main()’:
/export/gnu/src/gcc-work/gcc/gcc/testsuite/g++.dg/template/foo.ii:45: sorry,
unimplemented: mangling template_id_expr
/export/gnu/src/gcc-work/gcc/gcc/testsuite/g++.dg/template/foo.ii:45: sorry,
unimplemented: mangling template_id_expr
/export/gnu/src/gcc-work/gcc/gcc/testsuite/g++.dg/template/foo.ii:45: sorry,
unimplemented: mangling template_id_expr
[hjl@gnu-6 gcc]$ 

Is this expected?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2009-04-01 18:13 ` hjl dot tools at gmail dot com
@ 2009-04-06 15:39 ` jason at redhat dot com
  2009-04-21 16:02 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: jason at redhat dot com @ 2009-04-06 15:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from jason at redhat dot com  2009-04-06 15:39 -------
Subject: Re:  C++ ABI needs clarification on mangling of complex
 expressions

hjl dot tools at gmail dot com wrote:
> /export/gnu/src/gcc-work/gcc/gcc/testsuite/g++.dg/template/foo.ii:45: sorry,
> unimplemented: mangling template_id_expr
> 
> Is this expected?

That is in fact still unimplemented, and a good reason not to close the PR.

Jason


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2009-04-06 15:39 ` jason at redhat dot com
@ 2009-04-21 16:02 ` jakub at gcc dot gnu dot org
  2009-07-22 10:32 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-21 16:02 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.0                       |4.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2009-04-21 16:02 ` jakub at gcc dot gnu dot org
@ 2009-07-22 10:32 ` jakub at gcc dot gnu dot org
  2009-10-15 12:58 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-22 10:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.1                       |4.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2009-07-22 10:32 ` jakub at gcc dot gnu dot org
@ 2009-10-15 12:58 ` jakub at gcc dot gnu dot org
  2009-11-12  4:57 ` jason at gcc dot gnu dot org
  2010-02-03 20:43 ` jason at gcc dot gnu dot org
  13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-10-15 12:58 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.2                       |4.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2009-10-15 12:58 ` jakub at gcc dot gnu dot org
@ 2009-11-12  4:57 ` jason at gcc dot gnu dot org
  2010-02-03 20:43 ` jason at gcc dot gnu dot org
  13 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-12  4:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from jason at gcc dot gnu dot org  2009-11-12 04:57 -------
Actually, we have PR 38712 specifically about the template-id case, so let's go
ahead and close this PR.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions
       [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2009-11-12  4:57 ` jason at gcc dot gnu dot org
@ 2010-02-03 20:43 ` jason at gcc dot gnu dot org
  13 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-03 20:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from jason at gcc dot gnu dot org  2010-02-03 20:43 -------
Subject: Bug 4926

Author: jason
Date: Wed Feb  3 20:42:48 2010
New Revision: 156482

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156482
Log:
        PR c++/4926
        PR c++/38600
        * mangle.c (write_unqualified_id): Split out from write_expression.
        (write_unqualified_name): Call it.
        (write_member_name): Likewise.
        (write_expression): Support TEMPLATE_ID_EXPR.
        Disambiguate operator names.

Added:
    trunk/gcc/testsuite/g++.dg/abi/mangle35.C
    trunk/gcc/testsuite/g++.dg/abi/mangle37.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/mangle.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libiberty/ChangeLog
    trunk/libiberty/cp-demangle.c
    trunk/libiberty/testsuite/demangle-expected


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4926


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-02-03 20:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-4926-2734@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:18 ` [Bug c++/4926] C++ ABI needs clarification on mangling of complex expressions jason at gcc dot gnu dot org
2009-03-28 20:55 ` reichelt at gcc dot gnu dot org
2009-03-28 23:23 ` hjl dot tools at gmail dot com
2009-04-01 16:12 ` hjl dot tools at gmail dot com
2009-04-01 16:22 ` paolo dot carlini at oracle dot com
2009-04-01 18:10 ` hjl at gcc dot gnu dot org
2009-04-01 18:11 ` hjl at gcc dot gnu dot org
2009-04-01 18:13 ` hjl dot tools at gmail dot com
2009-04-06 15:39 ` jason at redhat dot com
2009-04-21 16:02 ` jakub at gcc dot gnu dot org
2009-07-22 10:32 ` jakub at gcc dot gnu dot org
2009-10-15 12:58 ` jakub at gcc dot gnu dot org
2009-11-12  4:57 ` jason at gcc dot gnu dot org
2010-02-03 20:43 ` jason 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).