++
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
: 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
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
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
++
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71875
liwei changed:
What|Removed |Added
Severity|normal |critical
++
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
++
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
++
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
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?
: 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
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
13 matches
Mail list logo