This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33972] Cannot declare operator() using function typedef


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33972

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Jun 24 14:47:42 2014
New Revision: 211944

URL: https://gcc.gnu.org/viewcvs?rev=211944&root=gcc&view=rev
Log:
/cp
2014-06-24  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/33972
    * decl.c (grokdeclarator): Do not early check for operator-function-id
    as non-function.

/testsuite
2014-06-24  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/33972
    * g++.dg/other/operator3.C: New.
    * g++.dg/template/operator8.C: Adjust.
    * g++.dg/template/operator9.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/other/operator3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/operator8.C
    trunk/gcc/testsuite/g++.dg/template/operator9.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]