[Bug c++/57063] Valid static_cast from data member to rvalue reference fails to compile

2013-04-25 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 --- Comment #2 from Nikolka tsoae at mail dot ru 2013-04-25 07:19:20 UTC --- The alias is added for convenience - we can quickly test handling of different types so. It seems that there is no problem with class types and function types, the error

[Bug c++/57063] Valid static_cast from data member to rvalue reference fails to compile

2013-04-25 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 --- Comment #4 from Nikolka tsoae at mail dot ru 2013-04-25 13:51:21 UTC --- It looks like the root of the issue is that static_cast produces an expression with wrong value category sometimes. #include iostream #include

[Bug c++/57063] New: Valid static_cast from data member to rvalue reference fails to compile

2013-04-24 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 Bug #: 57063 Summary: Valid static_cast from data member to rvalue reference fails to compile Classification: Unclassified Product: gcc Version: 4.8.1 Status:

[Bug c++/56192] New: global operator new() vs member operator new()

2013-02-03 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56192 Bug #: 56192 Summary: global operator new() vs member operator new() Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug c++/54506] Defaulted move constructors and move assignment operators are erroneously defined as deleted

2012-09-10 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54506 --- Comment #8 from Nikolka tsoae at mail dot ru 2012-09-10 06:26:02 UTC --- (In reply to comment #7) (In reply to comment #3) g++ v4.7.2 20120908 (prerelease) compiles the original example successfully, but it fails to compile the following

[Bug c++/51317] [C++0x] [DR 587] Wrong value category of conditional expression where lvalue operands differ only in cv-qualification

2012-09-10 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51317 Nikolka tsoae at mail dot ru changed: What|Removed |Added Version|4.7.0 |4.8.0 --- Comment #1 from

[Bug c++/54541] New: SFINAE bug: handling incomplete return types

2012-09-10 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54541 Bug #: 54541 Summary: SFINAE bug: handling incomplete return types Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug c++/54542] New: SFINAE bug: handling new expressions

2012-09-10 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54542 Bug #: 54542 Summary: SFINAE bug: handling new expressions Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/54543] New: Expression (condition ? array : throw expr)[index] fails to compile

2012-09-10 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54543 Bug #: 54543 Summary: Expression (condition ? array : throw expr)[index] fails to compile Classification: Unclassified Product: gcc Version: 4.8.0 Status:

[Bug c++/54506] Defaulted move constructors and move assignment operators are erroneously defined as deleted

2012-09-09 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54506 --- Comment #3 from Nikolka tsoae at mail dot ru 2012-09-09 20:55:38 UTC --- g++ v4.7.2 20120908 (prerelease) compiles the original example successfully, but it fails to compile the following code: template class T struct

[Bug c++/54506] Defaulted move constructors and move assignment operators are erroneously defined as deleted

2012-09-09 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54506 --- Comment #5 from Nikolka tsoae at mail dot ru 2012-09-09 22:42:03 UTC --- (In reply to comment #4) These examples aren't similar. An implicitly defined move constructor performs direct-initialization of non-static data members

[Bug c++/54506] Defaulted move constructors and move assignment operators are erroneously defined as deleted

2012-09-08 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54506 --- Comment #2 from Nikolka tsoae at mail dot ru 2012-09-08 12:17:24 UTC --- (In reply to comment #1) How are you calling g++? /mingw-gcc-4.7.1/bin/g++ test.cpp -std=c++11 What version are you using? Target: i686-pc-mingw32 Configured

[Bug c++/54521] g++ fails to call explicit constructors in the second step of copy initialization

2012-09-08 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54521 --- Comment #2 from Nikolka tsoae at mail dot ru 2012-09-08 12:36:29 UTC --- (In reply to comment #1) Works fine with 4.6.3, 4.7.2 20120716 (prerelease) and 4.8.0 20120716 (experimental) As requested when submitting the bug, please provide

[Bug c++/54526] New: :: is incorrectly treated as digraph : followed by colon

2012-09-08 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54526 Bug #: 54526 Summary: :: is incorrectly treated as digraph : followed by colon Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED

[Bug c++/54521] g++ fails to call explicit constructors in the second step of copy initialization

2012-09-08 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54521 --- Comment #3 from Nikolka tsoae at mail dot ru 2012-09-08 13:25:20 UTC --- In both cases (for g++ v4.7.1 and v4.8.0) the only compiler option was -std=c++11. Nothing magical.

[Bug c++/54521] New: g++ fails to call explicit constructors in the second step of copy initialization

2012-09-07 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54521 Bug #: 54521 Summary: g++ fails to call explicit constructors in the second step of copy initialization Classification: Unclassified Product: gcc Version: 4.7.1

[Bug c++/54506] New: Defaulted move constructors and move assignment operators are erroneously defined as deleted

2012-09-06 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54506 Bug #: 54506 Summary: Defaulted move constructors and move assignment operators are erroneously defined as deleted Classification: Unclassified Product: gcc Version: 4.7.1

[Bug c++/52625] Incorrect specialization semantics of friend class template declaration

2012-03-20 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52625 Nikolka tsoae at mail dot ru changed: What|Removed |Added CC||tsoae at mail dot ru

[Bug c++/51316] alignof doesn't work with arrays of unknown bound

2011-12-28 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51316 --- Comment #5 from Nikolka tsoae at mail dot ru 2011-12-28 22:06:18 UTC --- On it. There is an active core issue about alignof: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3309.html#1305 Probably, you should take into account

[Bug c++/51316] alignof doesn't work with arrays of unknown bound

2011-11-27 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51316 --- Comment #2 from Nikolka tsoae at mail dot ru 2011-11-27 08:37:37 UTC --- Note that this usage is not valid in C1X. Could you explain?

[Bug c++/51312] New: Wrong interpretation of converted constant expressions (for template arguments and enumerator initializers)

2011-11-26 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51312 Bug #: 51312 Summary: Wrong interpretation of converted constant expressions (for template arguments and enumerator initializers) Classification: Unclassified Product: gcc

[Bug c++/51312] Wrong interpretation of converted constant expressions (for template arguments and enumerator initializers)

2011-11-26 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51312 --- Comment #2 from Nikolka tsoae at mail dot ru 2011-11-26 15:33:36 UTC --- For the first one, you should write X{} instead of X() which looks too much like a function type. I agree, that was my mistake.

[Bug c++/51316] New: alignof doesn't work with arrays of unknown bound

2011-11-26 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51316 Bug #: 51316 Summary: alignof doesn't work with arrays of unknown bound Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug c++/51317] New: Wrong value category of conditional expression where lvalue operands differ only in cv-qualification (see DR 587)

2011-11-26 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51317 Bug #: 51317 Summary: Wrong value category of conditional expression where lvalue operands differ only in cv-qualification (see DR 587) Classification: Unclassified