public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/52030] New: ICE with decltype(make_tuple) is a late return type @ 2012-01-28 23:07 public at alisdairm dot net 2012-01-28 23:08 ` [Bug c++/52030] " jakub at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: public at alisdairm dot net @ 2012-01-28 23:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52030 Bug #: 52030 Summary: ICE with decltype(make_tuple) is a late return type Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: public@alisdairm.net The following sample code compiles with gcc 4.6.2, but produces and ICE for recent 4.7 builds: #include <tuple> using namespace std; template<typename ...T> auto factory(T... t) -> decltype(make_tuple(t...)) { return make_tuple(t...); } auto main() -> int { auto x = factory(3); } Reported error: tree check: expected tree_list, have in eq_local_specializations, at cp/pt.c:1687 Version info of compiler I am testing with: Using built-in specs. COLLECT_GCC=g++-mp-4.7 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.0/lto-wrapper Target: x86_64-apple-darwin11 Configured with: ../gcc-4.7-20120121/configure --prefix=/opt/local --build=x86_64-apple-darwin11 --enable-languages=c,c++,objc,obj-c++ --libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking --disable-multilib --enable-lto Thread model: posix gcc version 4.7.0 20120121 (experimental) (GCC) ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/52030] ICE with decltype(make_tuple) is a late return type 2012-01-28 23:07 [Bug c++/52030] New: ICE with decltype(make_tuple) is a late return type public at alisdairm dot net @ 2012-01-28 23:08 ` jakub at gcc dot gnu.org 2012-01-28 23:10 ` public at alisdairm dot net 2012-01-29 0:43 ` paolo.carlini at oracle dot com 2 siblings, 0 replies; 4+ messages in thread From: jakub at gcc dot gnu.org @ 2012-01-28 23:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52030 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-28 22:21:52 UTC --- Dup of PR51852 ? ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/52030] ICE with decltype(make_tuple) is a late return type 2012-01-28 23:07 [Bug c++/52030] New: ICE with decltype(make_tuple) is a late return type public at alisdairm dot net 2012-01-28 23:08 ` [Bug c++/52030] " jakub at gcc dot gnu.org @ 2012-01-28 23:10 ` public at alisdairm dot net 2012-01-29 0:43 ` paolo.carlini at oracle dot com 2 siblings, 0 replies; 4+ messages in thread From: public at alisdairm dot net @ 2012-01-28 23:10 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52030 --- Comment #2 from Alisdair Meredith <public at alisdairm dot net> 2012-01-28 23:06:53 UTC --- IT could well be - I struggled to get a more minimal example when not using 'make_tuple', and it could well be doing something similar, especially if it yields the same ICE. Does the sample code I give compile correctly with the patch for PR51852? ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/52030] ICE with decltype(make_tuple) is a late return type 2012-01-28 23:07 [Bug c++/52030] New: ICE with decltype(make_tuple) is a late return type public at alisdairm dot net 2012-01-28 23:08 ` [Bug c++/52030] " jakub at gcc dot gnu.org 2012-01-28 23:10 ` public at alisdairm dot net @ 2012-01-29 0:43 ` paolo.carlini at oracle dot com 2 siblings, 0 replies; 4+ messages in thread From: paolo.carlini at oracle dot com @ 2012-01-29 0:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52030 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-28 23:46:25 UTC --- Indeed, current mainline is fine. *** This bug has been marked as a duplicate of bug 51852 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-28 23:46 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-01-28 23:07 [Bug c++/52030] New: ICE with decltype(make_tuple) is a late return type public at alisdairm dot net 2012-01-28 23:08 ` [Bug c++/52030] " jakub at gcc dot gnu.org 2012-01-28 23:10 ` public at alisdairm dot net 2012-01-29 0:43 ` 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).