[LLVMbugs] [Bug 18362] New: clang++ segfaults when parsing c++11 syntax

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 2 20:52:56 PST 2014


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

            Bug ID: 18362
           Summary: clang++ segfaults when parsing c++11 syntax
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cl91tp at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11805
  --> http://llvm.org/bugs/attachment.cgi?id=11805&action=edit
Processed source

clang++ segfaults when parsing the following c++11 syntax:

struct fun {
        fun &operator=() = delete;
};

int main()
{
        return 0;
}

The above code is not correct c++11, because fun::operator= needs one argument,
but the code supplies none. This seems to cause the parser to panic.

Stack backtrace, processed source and run script are appended in this bug
report.

-- 
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/20140103/2984db9f/attachment.html>


More information about the llvm-bugs mailing list