[Bug libstdc++/67503] String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503 --- Comment #10 from radventure at yandex dot ru --- (In reply to radventure from comment #9) > I understand the "small string optimization" idea. I agree about allocation > counting. But I don't see space economy, now sizeo

[Bug libstdc++/67503] String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503 --- Comment #9 from radventure at yandex dot ru --- I understand the "small string optimization" idea. I agree about allocation counting. But I don't see space economy, now sizeof(string) is 28 bytes in 32-bit environment instead of 4 bytes early.

[Bug libstdc++/67503] String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503 --- Comment #6 from radventure at yandex dot ru --- (In reply to Jonathan Wakely from comment #4) > (In reply to radventure from comment #3) > > I can solve the alignment but prbolem will not be fixed. > > I agree with remark abo

[Bug libstdc++/67503] String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503 --- Comment #5 from radventure at yandex dot ru --- When you use local buffer for storing string value it not necessary to have pointer to it. And we can reduce the size of string by the syzeof(pointer).

[Bug libstdc++/67503] String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503 radventure at yandex dot ru changed: What|Removed |Added Resolution|INVALID |WONTFIX

[Bug libstdc++/67503] String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503 --- Comment #3 from radventure at yandex dot ru --- I can solve the alignment but prbolem will not be fixed. I agree with remark about "non-trivial types" but this code works in previous gcc versions and works in visual c++ 2015.

[Bug libstdc++/67503] New: String cannot be loaded from binary representation

2015-09-08 Thread radventure at yandex dot ru
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: radventure at yandex dot ru Target Milestone: --- #include #include int main() { unsigned char buff1[sizeof(std::string)], buff2[sizeof(std::string)]; std::string s1("SMAL STRING BUG"), s2; n

[Bug c++/67270] internal compiler error: in unify, at cp/pt.c:18178

2015-08-19 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67270 --- Comment #2 from radventure at yandex dot ru --- (In reply to Marek Polacek from comment #1) > This was fixed in r219557 and is fixed in 5/trunk. I know about absence of problem in 5.1.

[Bug c++/67270] New: internal compiler error: in unify, at cp/pt.c:18178

2015-08-19 Thread radventure at yandex dot ru
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: radventure at yandex dot ru Target Milestone: --- Code listed below crashes compiler I compile it with g++ -std=c++11 test.cpp #include template class C, typename... T> void g(const C& a) { } int main()

[Bug c++/65312] Implicitly-declared default constructor must be defined as deleted

2015-03-17 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65312 --- Comment #5 from radventure at yandex dot ru --- (In reply to Marek Polacek from comment #4) > Looks like this PR could be resolved as a NOTABUG? Agree

[Bug c++/65312] Implicitly-declared default constructor must be defined as deleted

2015-03-04 Thread radventure at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65312 --- Comment #2 from radventure at yandex dot ru --- (In reply to Jonathan Wakely from comment #1) > I believe this is a GCC extension, G++ implements the proposed resolution of > http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2

[Bug c++/65312] New: Implicitly-declared default constructor must be defined as deleted

2015-03-04 Thread radventure at yandex dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: radventure at yandex dot ru I think the next code should not be successfully compiled because of implicitly-declared default constructor of Array struct should be deleted #include