[LLVMbugs] [Bug 22586] New: Functional cast notation with function type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 14 03:34:49 PST 2015


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

            Bug ID: 22586
           Summary: Functional cast notation with function type
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: r.hl at gmx.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Given

using type = int();

Then

int (&&a)() = type();

compiles, while [expr.type.conv]/2 does not allow it. Moreover, the (also
invalid) expression statement

type()();

yields "cannot compile this l-value expression yet".

-- 
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/20150214/c275e2a1/attachment.html>


More information about the llvm-bugs mailing list