[llvm-bugs] [Bug 25752] New: Implicit cast missing from syntactic form of init list expression

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 5 00:01:03 PST 2015


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

            Bug ID: 25752
           Summary: Implicit cast missing from syntactic form of init list
                    expression
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: abramo.bagnara at bugseng.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Comparing the result of InitListExpr::getSyntacticForm between r224986
and trunk I've discovered that integer to char implicit cast for
integer literal 3 is no longer added to AST for C++ (while it is present
in C).

This is the source used to test:

char v[10] = { 3 };

The issue has been discussed extensively in thread originated by
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150824/136767.html

It has been agreeded that syntactic form should contain the implicit casts also
in C++ (permitting in this way also to avoid to regenerate N times the same
nodes in semantic form).

-- 
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/20151205/4d3be3df/attachment-0001.html>


More information about the llvm-bugs mailing list