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
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.
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
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).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503
radventure at yandex dot ru changed:
What|Removed |Added
Resolution|INVALID |WONTFIX
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.
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
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.
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()
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
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
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
12 matches
Mail list logo