https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80247
--- Comment #3 from Sumit <sbansal at ciena dot com> ---
(In reply to Richard Biener from comment #1)
> Provide a testcase. It works for me. Testcase:
>
> void *p = nullptr;
>
> > g++-4.8 t.C -S -std=c++11
>
> Note that GCC 4.8 is no longer maintained, please use at least GCC 5.4.
The use case is :
060 class string_ref {
061 public:
062 // types
063 typedef const char* const_iterator;
064 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
065
066 // constants
067 const static size_t npos;
068
069 // construct/copy.
070 string_ref() : data_(nullptr), length_(0) {}