[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-04 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #19 from Kerrek SB 2011-10-04 11:59:39 UTC --- > The following allocation and deallocation functions (18.6) are implicitly declared in global scope in each translation unit of a program. If those functions are declared implicitly, co

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #13 from Kerrek SB 2011-10-03 16:12:28 UTC --- Very interesting. I understand that making the function static makes the program ill-formed, but it's still somewhat surprising that a compiler flag should turn a perfectly valid program

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-02 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #3 from Kerrek SB 2011-10-02 23:32:47 UTC --- Thank you for the replies. Is this behaviour standard-conforming? Also, could you tell me how I "mark the operators as exported", or just anything else that'll make the program behave as e

[Bug c++/50594] New: Option -fwhole-program discards replaced new operator for std::string

2011-10-02 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 Bug #: 50594 Summary: Option -fwhole-program discards replaced new operator for std::string Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRM

[Bug c++/50458] ICE when using brace-initializer for new array

2011-09-19 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50458 --- Comment #1 from Kerrek SB 2011-09-19 22:13:29 UTC --- (I am told that this is no longer a problem in the latest snapshot.)

[Bug c++/50458] New: ICE when using brace-initializer for new array

2011-09-19 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50458 Bug #: 50458 Summary: ICE when using brace-initializer for new array Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/50443] ICE when using brace-enclosed initializer for C-style array in constructor

2011-09-17 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443 --- Comment #3 from Kerrek SB 2011-09-17 21:50:05 UTC --- Alright, if it's fixed already, that's fine. I only have the full release versions, so I didn't test anything newer than 4.6.1. Thanks!

[Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor

2011-09-17 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443 Bug #: 50443 Summary: ICE when using brace-enclosed initializer for C-style array in constructor Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCO

[Bug c++/50075] [C++0x] ICE related to parameter deduction and initializer_list

2011-08-15 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50075 --- Comment #7 from Kerrek SB 2011-08-15 13:57:51 UTC --- This is great, thank you!

[Bug c++/50075] ICE related to parameter deduction and initializer_list

2011-08-13 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50075 --- Comment #2 from Kerrek SB 2011-08-13 14:09:20 UTC --- Indeed, according to the FDIS size() is *not* constexpr, but I had initially just checked the GCC implementation, in which it *is* declared as constexpr! (This is in "c++/4.6.1/initializer

[Bug c++/50075] New: ICE related to parameter deduction and initializer_list

2011-08-13 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50075 Bug #: 50075 Summary: ICE related to parameter deduction and initializer_list Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED S

[Bug c++/49952] [C++0x] Unicode literals do not generate errors as prescribed by the FDIS standard

2011-08-03 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49952 --- Comment #3 from Kerrek SB 2011-08-03 11:36:41 UTC --- Maybe it could trigger a warning in -pedantic mode?

[Bug c++/49952] New: Unicode literals do not generate errors as prescribed by the FDIS standard

2011-08-02 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49952 Summary: Unicode literals do not generate errors as prescribed by the FDIS standard Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: trivial Priority: P3

[Bug c++/49669] [4.6/4.7 Regression] [C++0x] Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"

2011-07-07 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669 --- Comment #4 from Kerrek SB 2011-07-07 16:09:55 UTC --- You're right, it works in 4.6.1 - thanks! (Just updated.) Say, since you're here, if I change the definition of x from "Foo[2]" to "std::array", should I be allowed to initialize it with

[Bug c++/49669] [4.6/4.7 Regression] [C++0x] Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"

2011-07-07 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669 --- Comment #2 from Kerrek SB 2011-07-07 11:49:46 UTC --- Yes, I know that the code is invalid, but that shouldn't make the compiler crash, should it? For that matter, your proposed correct syntax is also rejected by 4.6.0: Goo::Goo() : x{Foo(4

[Bug c++/49669] New: Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"

2011-07-07 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669 Summary: Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530" Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: minor