input_stream >> std::ws fails??

Hi,

The following assertion fails in pgCC (tested with versions 6.2.5 and 7.0.2):

std::istringstream  in( "2" ); // no space after `2'
int i;
in >> i >> std::ws;
assert( !in::fail() ) ;

Is it a bug?

thanks
Levent

This is a bug. Thank you for your post.
It has been filed as TPR 4304.:

The code below passes in g++, fails for pgCC:

#include
#include <assert.h>
int main()
{
std::istringstream in( “2” ); // no space after `2’
int i;
in >> i >> std::ws;
#if 0
assert( !in::fail() ) ;
#else
assert( !in.fail() ) ;
#endif
}