[LLVMbugs] [Bug 23891] New: scoped enumeration error messages are an embarrassment
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Thu Jun 18 19:13:01 PDT 2015
    
    
  
https://llvm.org/bugs/show_bug.cgi?id=23891
            Bug ID: 23891
           Summary: scoped enumeration error messages are an embarrassment
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: chandlerc at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified
I just got the worst syntax error message I've seen in a long time:
In file included from ../lib/CodeGen/PostRASchedulerList.cpp:27:
../include/llvm/Analysis/AliasAnalysis.h:129:57: error: invalid operands to
binary expression ('llvm::FunctionModRefLocation' and 'llvm::ModRefInfo')
  DoesNotAccessMemory = FunctionModRefLocation::Nowhere | ModRefInfo::NoModRef,
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
../include/llvm/Analysis/AliasAnalysis.h:137:48: error: invalid operands to
binary expression ('llvm::FunctionModRefLocation' and 'llvm::ModRefInfo')
      FunctionModRefLocation::ArgumentPointees | ModRefInfo::Ref,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
../include/llvm/Analysis/AliasAnalysis.h:145:48: error: invalid operands to
binary expression ('llvm::FunctionModRefLocation' and 'llvm::ModRefInfo')
      FunctionModRefLocation::ArgumentPointees | ModRefInfo::ModRef,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
../include/llvm/Analysis/AliasAnalysis.h:153:54: error: invalid operands to
binary expression ('llvm::FunctionModRefLocation' and 'llvm::ModRefInfo')
  OnlyReadsMemory = FunctionModRefLocation::Anywhere | ModRefInfo::Ref,
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
The bug is that these are scoped enumerations and so there is no '|' operator
(it would require an implicit conversion to int). But the error message
literally tells me nothing other than that there *is* an error. =[ =[ =[
-- 
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/20150619/aba23eb1/attachment.html>
    
    
More information about the llvm-bugs
mailing list