[cfe-dev] Bug in Preprocessor::HandlePragmaDirective ?
Ted Kremenek
kremenek at apple.com
Wed Jun 17 21:24:45 PDT 2009
Hi Peter,
I'm not certain if anyone responded to you. If nobody hasn't, can you
please file a bug report? That way we don't lose track of it. I plan
on looking into this shortly.
Ted
On Jun 17, 2009, at 6:54 AM, Peter Thoman wrote:
> In Pragma.cpp, line 96:
>
> if (CurPPLexer->ParsingPreprocessorDirective <http://clang.llvm.org/doxygen/classclang_1_1PreprocessorLexer.html#6388ce47d19b9f7d0c703c643ab903a5
> >)
>
> Is this correct? We got a segmentation fault [1] there (CurPPLexer is
> null) in our application. I could reproduce it with a small sample
> program [2] and even smaller input file [3] using pragma namespaces.
>
> We fixed the immediate problem locally by changing the line above to
>
> if (CurPPLexer&& CurPPLexer->ParsingPreprocessorDirective <http://clang.llvm.org/doxygen/classclang_1_1PreprocessorLexer.html#6388ce47d19b9f7d0c703c643ab903a5
> >)
>
> but I'm not quite sure that this is the correct way of doing it.
>
> [1] http://pastebin.com/d48a6b613
> [2] http://pastebin.com/m20e46def
> [3] http://pastebin.com/d1584397c
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list