public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56299] New: Dependent lambda expression breaks explicit template instantiation
@ 2013-02-12 13:30 ers.trion at gmail dot com
  2013-02-12 14:41 ` [Bug c++/56299] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: ers.trion at gmail dot com @ 2013-02-12 13:30 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56299
           Summary: Dependent lambda expression breaks explicit template
                    instantiation
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ers.trion@gmail.com


The following code produces an internal compiler error:

template<class T>
class Foo
{
    void process(Foo m);    
    void bar()
    {
        [this] { process(Foo()); }();
    }
};

template class Foo<int>;


Output: 

foo.cpp: In lambda function:
foo.cpp:11:24: internal compiler error: in get_expr_operands, at
tree-ssa-operands.c:1035
Please submit a full bug report,
with preprocessed source if appropriate.


Compiler info:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.7.2/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id
--with-ppl --enable-cloog-backend=isl --disable-ppl-version-check
--disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default
--enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu
--disable-multilib --disable-libssp --disable-build-with-cxx
--disable-build-poststage1-with-cxx --enable-checking=release
Thread model: posix
gcc version 4.7.2 (GCC)


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

* [Bug c++/56299] Dependent lambda expression breaks explicit template instantiation
  2013-02-12 13:30 [Bug c++/56299] New: Dependent lambda expression breaks explicit template instantiation ers.trion at gmail dot com
@ 2013-02-12 14:41 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-02-12 14:41 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-02-12 14:41:23 UTC ---
Already fixed mainline and 4.7.3.

*** This bug has been marked as a duplicate of bug 53137 ***


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

end of thread, other threads:[~2013-02-12 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 13:30 [Bug c++/56299] New: Dependent lambda expression breaks explicit template instantiation ers.trion at gmail dot com
2013-02-12 14:41 ` [Bug c++/56299] " paolo.carlini at oracle 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).