[LLVMbugs] [Bug 22073] New: Regression for array initialized with __func__

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 31 03:36:22 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=22073

            Bug ID: 22073
           Summary: Regression for array initialized with __func__
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: abramo.bagnara at bugseng.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following source used to compile but currently give parse error (r224986).

FWIW in gcc it is compiled without errors.

$ cat p.cc
void f() {
  decltype(__func__) v = __func__;
}
$ clang++ -cc1 -std=c++11 p.cc
p.cc:2:22: error: array initializer must be an initializer list or string
literal
  decltype(__func__) v = __func__;
                     ^
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141231/a58d9a57/attachment.html>


More information about the llvm-bugs mailing list