public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dougmencken at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug objc++/57607] g++ cannot distinguish obj-c message call from c++11 lambda Date: Mon, 07 Sep 2015 14:36:00 -0000 [thread overview] Message-ID: <bug-57607-4-BiK9f1fmuS@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-57607-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57607 Douglas Mencken <dougmencken at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dougmencken at gmail dot com --- Comment #1 from Douglas Mencken <dougmencken at gmail dot com> --- I confirm it: still here with 4.9.2 $ g++ -std=c++11 test.mm && ./a.out test.mm: In function 'int main()': test.mm:8:10: error: expected identifier before ']' token [] () { std::cout << "Hello world!" << std::endl; }(); ^ test.mm:8:10: error: '<expression error>' is not an Objective-C class name or alias test.mm:8:10: error: objective-c++ message argument(s) are expected before ']' token test.mm:8:61: error: expected primary-expression before ')' token [] () { std::cout << "Hello world!" << std::endl; }(); ^ $ g++ --version | head -1 g++ (GCC) 4.9.2 Issue also causes errors like /usr/include/c++/4.9.2/bits/hashtable.h:878:15: error: objective-c++ message argument(s) are expected before ']' token [this](const __node_type* __n) /usr/include/c++/4.9.2/bits/hashtable.h:916:17: error: objective-c++ message argument(s) are expected before ']' token [&__roan](const __node_type* __n)
next prev parent reply other threads:[~2015-09-07 14:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-06-13 17:57 [Bug objc++/57607] New: " antonbachin at yahoo dot com 2015-09-07 14:36 ` dougmencken at gmail dot com [this message] 2015-09-07 15:04 ` [Bug objc++/57607] " redi at gcc dot gnu.org 2015-09-08 2:37 ` dougmencken at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-57607-4-BiK9f1fmuS@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).