std::cout breaks after nullptr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Is this an issue? G++ doesn't identify problem in this test case doesn't when compiling or running.

"hello" is not displayed, std::cout never works again after nullptr.


// g++-8 -Wall -Wextra -Wconversion-null -Wno-nonnull-compare -Wzero-as-null-pointer-constant -fsanitize=null,returns-nonnull-attribute,signed-integer-overflow,leak,undefined,address -o cout cout.cpp
#include <iostream>
int main()
{
    const char * p = nullptr;
    std::cout << p;
    std::cout << "hello";
}



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux