[Bug c++/108323] New: combine does not change the locale name

2023-01-06 Thread liweifriends at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- for the following code ``` #include #include int main() { std::locale loc = std::locale() .combine>(std::locale("en_US.UTF-8")); std::cou

[Bug c/108134] New: A description bug for Extended Asm document

2022-12-15 Thread liweifriends at gmail dot com via Gcc-bugs
: c Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- In document (https://github.com/gcc-mirror/gcc/blob/master/gcc/doc/extend.texi), there are the following description: The rest of this discussion uses the following code

[Bug c++/72852] New: constexpr inside class template cannot be recognized

2016-08-09 Thread liweifriends at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- The code is as follows: #include #include using namespace std; template struct Outer { template struct Inter { constexpr static bool value

[Bug c++/72761] New: the "using" keyword has different behaviors

2016-07-31 Thread liweifriends at gmail dot com
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- The following code is correct: template using Check = std::remove_const; And the following code is not correct: template using Check = std::remove_const; Ho

[Bug c++/72481] New: Compile error for varadic template

2016-07-25 Thread liweifriends at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- The code is as follows: === // Code Pos 1 //template struct PolicyContainer; template struct DummyLayer2; template

[Bug c++/71954] New: template partial specialization for constexpr error

2016-07-20 Thread liweifriends at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- The code is as follows: template struct Container; template struct Str1 { template struct Helper1 { constexpr static bool value = true

[Bug c++/71875] template specialization compile error

2016-07-14 Thread liweifriends at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71875 liwei changed: What|Removed |Added Severity|normal |critical

[Bug c++/71875] New: template specialization compile error

2016-07-14 Thread liweifriends at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- Created attachment 38899 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38899&action=edit the code The code is as follows: template constexpr bool IsMatrix

[Bug c++/67358] New: const makes the code behavior changes

2015-08-26 Thread liweifriends at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Target Milestone: --- #include #include #include using namespace std; struct LoadModel; template class Hello { public: template friend void LayerOperation(TLayerOp

[Bug c++/57827] New: compiler segmentation fault

2013-07-04 Thread liweifriends at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com When build the following code with GCC 4.8.1: struct C { constexpr int fun (int x) { return x + 1; } int a = 2; int b = fun(a); }; C c; int main() {} GCC told me : internal compiler

[Bug c++/57820] New: Can't initialize a constexpr object with inline initialization

2013-07-04 Thread liweifriends at gmail dot com
ormal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com the source code: struct C { int a = 2; int b = a + 1; }; C c; //OK constexpr C d; //error int main() { } Why I can't initialize d?

[Bug c++/57818] New: A strange template output

2013-07-04 Thread liweifriends at gmail dot com
: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com Hi: I have tried the following code in gcc 4.8.1 template struct h { static constexpr float value() { return *b; } }; constexpr float a = 3.0f; int main() { cout<::value<::value see

[Bug c++/57720] New: [C++11]Crash when Delegating Constructors throw exceptions

2013-06-26 Thread liweifriends at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: liweifriends at gmail dot com System type: windows server 2012 + mingw-build (64 bit) source code: #include #include using namespace std; class DCExcept { public: DCExcept(double d