[Bug c++/29234] Call to operator() of temporary object wrongly parsed

poletti.marco at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 17 17:59:00 GMT 2012


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

--- Comment #6 from poletti.marco at gmail dot com 2012-09-17 17:57:58 UTC ---
Still an issue with GCC 4.7.1.
Clang does not have this issue.

Yet another example:


struct C {
    void operator[](C) {
    }
};

void f() {
    C x;
    (C()[x]);
}



More information about the Gcc-bugs mailing list