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

Bug#524064: Regression: compile failure on valid C++ code



tags 524064 moreinfo
thanks

On Tue, Apr 14, 2009 at 05:17:59PM +0100, Alastair McKinstry wrote:
> Relevant code:
> 196                 ostringstream out;
> 197                 tm convert = base_;
> 198             locale loc("");
> 199             out.imbue(loc);
> 200             const std::time_put<char>& tfac = use_facet<time_put<char> >(loc);
> 201             string format = "Forecast VT %A %e %B %Y %H UTC";
> 202             tfac.put(out, out, ' ', &convert, format.c_str(), format.c_str()+format.length());

Please provide a _working_ (or failing) snippet which shows the
behaviour. This one will be rejected by the compiler always, because of
missing includes and function body. Also please show why you think this
code is correct.

> This code compiles fine with g++-4.1.

gcc 4.3 got more strict for missing includes, so you need to show that
it is not such a problem.

Bastian

-- 
The more complex the mind, the greater the need for the simplicity of play.
		-- Kirk, "Shore Leave", stardate 3025.8



Reply to: