[llvm-bugs] [Bug 34273] New: `auto x = true["Oh really?"]; ` does not compile (https://godbolt.org/g/XJBGdp)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 22 00:22:29 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34273

            Bug ID: 34273
           Summary: `auto x = true["Oh really?"];` does not compile
                    (https://godbolt.org/g/XJBGdp)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: adishavit at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

The following confusing snippet fails to compile though it (confusingly) should
- as it does on other compilers:
`auto x = true["Oh really?"];`

Live example: https://godbolt.org/g/XJBGdp

-- 
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/20170822/0b0668d4/attachment-0001.html>


More information about the llvm-bugs mailing list