News for hackers. Stuff that matters.
Re:C++17 Compiler Bug Hunt by ahartmetz on Friday April 06, 2018 @10:09AM (#16773327)
Don't go too far, or you'll get...

auto i = { 1 };

Re:C++17 Compiler Bug Hunt by loup-vaillant on Friday April 06, 2018 @10:22AM (#16773419)
Wait, is that an integer, or an array? Serious question, with initialiser lists I'm not sure any more.
Re:C++17 Compiler Bug Hunt by claudius on Friday April 06, 2018 @10:51AM (#16773643)

    auto i = {5};
is a std::initializer_list<int>, whereas

    auto i{5};
is an int (as of C++17): https://godbolt.org/g/eXXN3o

See also https://stackoverflow.com/questions/25612262/why-does-auto-x... .

Re:C++17 Compiler Bug Hunt by ddavis on Friday April 06, 2018 @11:31AM (#16773989)
If you change the compiler version (to e.g. gcc7) your blurb compiles in C++14.
Re:C++17 Compiler Bug Hunt by wyldfire on Friday April 06, 2018 @10:28AM (#16773475)
Don't sweat it, it's `auto.` Whatever you meant it to be will be deduced by the compiler. ;)