[LLVMbugs] [Bug 6428] New: G++ warns about this, we don't.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 25 21:37:05 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6428
Summary: G++ warns about this, we don't.
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
It's pretty scary that we allow this (strings have type const char*, not
char*):
int main(void)
{
static char *t = "hello";
return(0);
}
--
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