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

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).