[LLVMbugs] [Bug 14411] New: "restrict requires a pointer or reference" is wrong for C++11

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 22 03:11:28 PST 2012


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

             Bug #: 14411
           Summary: "restrict requires a pointer or reference" is wrong
                    for C++11
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: i.galic at brainsware.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


If I understand the spec correctly:


    17.2 The C standard library [library.c]

    1 The C++ standard library also makes available the facilities of the C
standard library, suitably adjusted to ensure static type safety.
    2 The descriptions of many library functions rely on the C standard library
for the signatures and semantics of those functions. In all such cases, any use
of the restrict qualifier shall be omitted.


for C++11, restrict should be ignored.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list