[LLVMbugs] [Bug 7448] New: Deprecated conversion from string literal to 'char *' should be a little more robust
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Tue Jun 22 02:55:47 PDT 2010
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=7448
           Summary: Deprecated conversion from string literal to 'char *'
                    should be a little more robust
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: cesium2 at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I was trying to compile some programs with clang++, and I found code where
clang++ errors where g++ just outputs a warning:
struct S {
  S(char *);
};
S::S(char *) { }
#define GETTEXT(x) (x)
int main() {
 S T("test");
 S U(GETTEXT("test"));
}
clang++ errors on the second initialization, whereas it should warn like in the
first case.
-- 
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