B
B
BB82016-02-11 14:52:40
C++ / C#
BB8, 2016-02-11 14:52:40

Incomprehensible situation with iostream!?

The essence of the problem is this:
When using the iostream library and under certain conditions, the program crashes.
Works if (Debug / Release):

int a(12345);
std::cout << a << std::endl;

and crashes if (Debug / Release):
int a(12345);
std::cout << "A: " << a << std::endl;

Moreover, this problem is present if you compile in Visual Studio 2012, 2013 Update 5 (did not check it in 2015). Operating system Windows 7 SP1, with all updates released today (11/02/2016).
Problem signature:
pastebin.com/Ra0wANfK
YouTube:
https://youtu.be/wJK2TWdTGlY

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
flash_back, 2016-02-11
@flash_back

You have found an IDE bug. Contact Microsoft technical support. Or do you think there are representatives here? Have you tried running without header precompilation?

A
abcd0x00, 2016-02-12
@abcd0x00

Try this

int z(12345);
std::cout << "Z: " << z << std::endl;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question