http://llvm.org/bugs/show_bug.cgi?id=20960

Marshall Clow (home) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Marshall Clow (home) <[email protected]> ---
Howard provided me with this reference:

17.6.2.2 [using.headers]/p3 A translation unit shall include a header only
outside of any external declaration or definition, and shall include the header
lexically before the first reference in that translation unit to any of the
entities declared in that header. No diagnostic is required.

This states that your example code is undefined behavior (with no diagnostic
required!) because you reference std::istream without #include <istream>.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to