[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 Michel Morin mimomorin at gmail dot com changed: What|Removed |Added CC||mimomorin at gmail dot com --- Comment #8 from Michel Morin mimomorin at gmail dot com 2013-03-28 13:11:00 UTC --- The implementation of N3276 is not complete. `decltype` in gcc-4.9-20130324 does not require type-completeness but involves unnecessary template instantiations: * Compilation of the demonstration code in N3276 (also appeared in Nathan Ridge's comment in this PR) exhausted memory on my PC, so I had to quit the compilation. * Boost's testing code (https://svn.boost.org/svn/boost/trunk/libs/config/test/boost_no_decltype_n3276.ipp) failed to compile. (One needs to remove `namespace boost_no_cxx11_decltype_n3276 {` and its closing brace`}`, and rename `int test()` to `int main()` before the compilation.)
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.8.1 --- Comment #7 from Jason Merrill jason at gcc dot gnu.org 2013-03-26 14:31:48 UTC --- Closing.
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC|jason at gcc dot gnu.org| --- Comment #6 from Paolo Carlini paolo.carlini at oracle dot com 2013-03-23 10:52:25 UTC --- Fixed 4.8.1 too.
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 --- Comment #5 from Jason Merrill jason at gcc dot gnu.org 2013-03-17 02:37:21 UTC --- Author: jason Date: Sun Mar 17 02:37:09 2013 New Revision: 196736 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=196736 Log: N3276 PR c++/52748 * cp-tree.h (tsubst_flags): Add tf_decltype. * call.c (build_cxx_call): Don't build a temporary if it's set. (build_over_call): Make sure it's only passed to build_cxx_call. * parser.c (cp_parser_primary_expression): Add decltype_p parm. (cp_parser_unary_expression): Likewise. (cp_parser_cast_expression): Likewise. (cp_parser_binary_expression): Likewise. (cp_parser_assignment_expression): Likewise. (cp_parser_postfix_expression): Likewise. Pass tf_decltype. (cp_parser_explicit_instantiation): Add decltype_p. Force a temporary for a call on the LHS of a comma. (cp_parser_decltype): Pass true to decltype_p parms. * pt.c (tsubst) [DECLTYPE_TYPE]: Pass tf_decltype. (tsubst_copy_and_build): Pass tf_decltype down only for CALL_EXPR and the RHS of COMPOUND_EXPR. * tree.c (build_cplus_new): Call complete_type_or_maybe_complain. Added: trunk/gcc/testsuite/g++.dg/cpp0x/decltype-call1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/tree.c
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org |
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 --- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org 2013-02-18 12:47:32 UTC --- *** Bug 56374 has been marked as a duplicate of this bug. ***
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 --- Comment #2 from Nathan Ridge zeratul976 at hotmail dot com 2012-11-07 04:31:24 UTC --- Clang deemed this issue important enough to warrant a new entry (Incomplete retrn types, under Declared type of an expression) in their C++11 status page.
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 --- Comment #3 from Nathan Ridge zeratul976 at hotmail dot com 2012-11-07 04:32:06 UTC --- (In reply to comment #2) Clang deemed this issue important enough to warrant a new entry (Incomplete retrn types, under Declared type of an expression) in their C++11 status page. Link: http://clang.llvm.org/cxx_status.html
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed||2012-08-10 Ever Confirmed|0 |1
[Bug c++/52748] [C++11] N3276 changes to decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 --- Comment #1 from Johan Lundberg lundberj at gmail dot com 2012-08-09 08:08:46 UTC --- confirmed... I agree with this. Among other things it's important for boost/C++11 interop.