Note that a proposal for named arguments was recently presented to the C++
standards committee [1], and they did not seem receptive to it [2].
The proposal was for a different syntax (name : value), but the objections were
not related to the syntax.
Regards,
Nate
[1] http://open-std.org/JTC1/S
cc Andrew Sutton
From: gcc-ow...@gcc.gnu.org on behalf of Christopher Di
Bella
Sent: April 2, 2017 8:57 AM
To: gcc Mailing List
Subject: g++ extension for Concepts TS
Hey all,
I've been working on a concept extension that permits type aliases
inside the
> On 06/09/2011 03:48 PM, Jonathan Wakely wrote:
>
> When I'm working on complicated template code and debugging a mixture
> of bugs in my templates and ICEs in g++ caused by my buggy templates I
> sometimes wish I could see a dump of all the templates that the
> compiler is instantiating, so I c
Hello,
Now that the C++11 standard has been officially voted in, there is nothing
"experimental" about it any more.
Would it be possible to remove the warning about GCC's C++11 support
being experimental from http://gcc.gnu.org/projects/cxx0x.html, and
to modify the __GXX_EXPERIMENTAL_CXX0X__ m
Hi,
I'm wondering, are there are other new C++11 features planned
for GCC 4.7 besides "Extended friend declarations" and "Explicit
virtual overrides" (which are marked as already implemented at
http://gcc.gnu.org/projects/cxx0x.html)?
Thanks,
Nate
Hello,
So many times I write code like this:
SomeType function()
{
SomeType result;
// do something with result
return result;
}
except I often forget the "return result" statement.
Why does gcc not give an error about this?
If I compile with "-Wall", it will give a WARNING say
> On Thu, Mar 12, 2009 at 4:56 PM, Robert Dewar wrote:
>> Nathan Ridge wrote:
>>
>>> Why does gcc not give an error about this?
>>> If I compile with "-Wall", it will give a WARNING saying
>>> "control reaches end of non-void function&
Hello,
The attached minimal code (test.cpp) causes g++ to
segfault. It uses the C++0x features variadic templates and initializer
lists.
The command used to compile it is:
g++ -std=c++0x test.cpp
The output is:
test.cpp: In function ‘void f(const Args& ...) [with Args = ]’:
test.cpp:21: i
Hello,
I've just build the gcc trunk and tried to compile some code that compiled fine
with gcc 4.5.
It gave an internal compiler error.
I've reduced it to the following minimal test case:
#include
#include
int main()
{
std::map m;
std::pair p;
m.insert(p);
return 0;
}
Her
Hello,
For the following code:
struct S
{
int a;
float b;
};
struct T
{
T(S s) {}
};
int main()
{
T t(S{1, 0.1}); // ERROR HERE
}
gcc 4.6 trunk gives the following errors (with the --std=c++0x option):
decl.cpp: In function 'int main()':
decl.cpp:14:10: error: expected ')' befo
> Here's a simple program:
>
> #include
> #include
>
> int main()
> {
> std::vector vec;
> count(vec.begin(), vec.end(), 0); // shouldn't this be std::count ?
> }
>
> The above compiles successfully, but I think it shouldn't. I expect a
> message like "error: `count` not declared in scope" becaus
Hi,
I'm just wondering, is there any chance of fixing PR 50025 [1] soon?
It concerns uniform initialization of a class member of reference
type.
I have been using GCC to do C++11 development for a while now, and
this one bug has been a bit of an eyesore IMO, that has been
keeping the "uniform" ou
> Lots of warnings like this:
>
> ./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally
> defined but not used [-Wunused-local-typedefs]
>
> when building 1.54.0 with gcc-4.8.1 (fedora f19)
This warning is new in GCC 4.8, and I have been seeing a ton of them
not just in boos
> On 3 July 2013 02:41, Nathan Ridge wrote:
>>> Lots of warnings like this:
>>>
>>> ./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally
>>> defined but not used [-Wunused-local-typedefs]
>>>
>>> when building 1.54.0
> > Similarly for text-only vs. "rich text". You may argue that there's no
> > compatibility issue, but I disagree. As was pointed out upthread, when
> > people use "rich text", they often start to use colors or other mechanisms
> > to express themselves, which can now be dependent on the renderin
15 matches
Mail list logo