public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43016]  New: Inappropriate multiple definition error for lambda function when inside inline functions
@ 2010-02-10 13:31 plaice at cse dot unsw dot edu dot au
  2010-02-10 13:32 ` [Bug c++/43016] " plaice at cse dot unsw dot edu dot au
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: plaice at cse dot unsw dot edu dot au @ 2010-02-10 13:31 UTC (permalink / raw)
  To: gcc-bugs

When an inline function f() includes a lambda function and f() is called in
more than one compilation site, a multiple definition error for the lambda
function is generated at link time.  This does not correspond to the standard,
section 5.1.1.5, which states that "the closure type for a lambda expression
has a public inline function call operator".


-- 
           Summary: Inappropriate multiple definition error for lambda
                    function when inside inline functions
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: plaice at cse dot unsw dot edu dot au
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug c++/43016] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
  2010-02-10 13:32 ` [Bug c++/43016] " plaice at cse dot unsw dot edu dot au
@ 2010-02-10 13:32 ` plaice at cse dot unsw dot edu dot au
  2010-02-10 18:11 ` [Bug c++/43016] [C++0x] " jason at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: plaice at cse dot unsw dot edu dot au @ 2010-02-10 13:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from plaice at cse dot unsw dot edu dot au  2010-02-10 13:32 -------
Created an attachment (id=19834)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19834&action=view)
Second file for Bug 43016


-- 


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


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

* [Bug c++/43016] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
@ 2010-02-10 13:32 ` plaice at cse dot unsw dot edu dot au
  2010-02-10 13:32 ` plaice at cse dot unsw dot edu dot au
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: plaice at cse dot unsw dot edu dot au @ 2010-02-10 13:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from plaice at cse dot unsw dot edu dot au  2010-02-10 13:32 -------
Created an attachment (id=19833)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19833&action=view)
First file for Bug 43016.


-- 


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


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

* [Bug c++/43016] [C++0x] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
  2010-02-10 13:32 ` [Bug c++/43016] " plaice at cse dot unsw dot edu dot au
  2010-02-10 13:32 ` plaice at cse dot unsw dot edu dot au
@ 2010-02-10 18:11 ` jason at gcc dot gnu dot org
  2010-02-10 18:40 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-10 18:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

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|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-02-10 18:11:09
               date|                            |


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


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

* [Bug c++/43016] [C++0x] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
                   ` (2 preceding siblings ...)
  2010-02-10 18:11 ` [Bug c++/43016] [C++0x] " jason at gcc dot gnu dot org
@ 2010-02-10 18:40 ` paolo dot carlini at oracle dot com
  2010-02-10 21:48 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-02-10 18:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2010-02-10 18:40 -------
Thanks.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jason at gcc dot gnu dot org|


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


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

* [Bug c++/43016] [C++0x] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
                   ` (3 preceding siblings ...)
  2010-02-10 18:40 ` paolo dot carlini at oracle dot com
@ 2010-02-10 21:48 ` jason at gcc dot gnu dot org
  2010-02-10 22:01 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-10 21:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2010-02-10 21:48 -------
Subject: Bug 43016

Author: jason
Date: Wed Feb 10 21:48:25 2010
New Revision: 156671

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156671
Log:
        PR c++/43016
        * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C


-- 


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


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

* [Bug c++/43016] [C++0x] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
                   ` (4 preceding siblings ...)
  2010-02-10 21:48 ` jason at gcc dot gnu dot org
@ 2010-02-10 22:01 ` jason at gcc dot gnu dot org
  2010-04-07 22:16 ` jason at gcc dot gnu dot org
  2010-07-23 13:52 ` jason at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-10 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jason at gcc dot gnu dot org  2010-02-10 22:00 -------
Fixed for 4.5.


-- 

jason at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/43016] [C++0x] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
                   ` (5 preceding siblings ...)
  2010-02-10 22:01 ` jason at gcc dot gnu dot org
@ 2010-04-07 22:16 ` jason at gcc dot gnu dot org
  2010-07-23 13:52 ` jason at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-04-07 22:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jason at gcc dot gnu dot org  2010-04-07 22:16 -------
Subject: Bug 43016

Author: jason
Date: Wed Apr  7 22:16:15 2010
New Revision: 158095

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158095
Log:
        PR c++/43016
        * decl.c (start_preparsed_function): Do defer nested functions.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c


-- 


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


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

* [Bug c++/43016] [C++0x] Inappropriate multiple definition error for lambda function when inside inline functions
  2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
                   ` (6 preceding siblings ...)
  2010-04-07 22:16 ` jason at gcc dot gnu dot org
@ 2010-07-23 13:52 ` jason at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-07-23 13:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jason at gcc dot gnu dot org  2010-07-23 13:51 -------
Subject: Bug 43016

Author: jason
Date: Fri Jul 23 13:51:12 2010
New Revision: 162458

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162458
Log:
        PR c++/43016
        PR c++/45008
        * decl.c (start_preparsed_function): Do defer nested functions.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/abi/mangle44.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/decl.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2010-07-23 13:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10 13:31 [Bug c++/43016] New: Inappropriate multiple definition error for lambda function when inside inline functions plaice at cse dot unsw dot edu dot au
2010-02-10 13:32 ` [Bug c++/43016] " plaice at cse dot unsw dot edu dot au
2010-02-10 13:32 ` plaice at cse dot unsw dot edu dot au
2010-02-10 18:11 ` [Bug c++/43016] [C++0x] " jason at gcc dot gnu dot org
2010-02-10 18:40 ` paolo dot carlini at oracle dot com
2010-02-10 21:48 ` jason at gcc dot gnu dot org
2010-02-10 22:01 ` jason at gcc dot gnu dot org
2010-04-07 22:16 ` jason at gcc dot gnu dot org
2010-07-23 13:52 ` 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).