[LLVMbugs] [Bug 11068] New: lib/tablegen/TGPreprocessor.h requires NULL, but does not include a header for it
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 5 03:46:55 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11068
Summary: lib/tablegen/TGPreprocessor.h requires NULL, but does
not include a header for it
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu
As in summary, lib/tablegen/TGPreprocessor.h uses NULL, but does not include a
header for it.
At the moment it includes <vector>, which picks up <cstdlib> on many
implementations. In g++, starting with g++4.6, it no longer does, therefore the
following patch (or something similar) is required:
Index: lib/TableGen/TGPreprocessor.h
===================================================================
--- lib/TableGen/TGPreprocessor.h (revision 141174)
+++ lib/TableGen/TGPreprocessor.h (working copy)
@@ -15,6 +15,7 @@
#define TGPREPROCESSOR_H
#include <vector>
+#include <cstdlib>
namespace llvm {
--
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