d=gnu++*, and std=c++98.
I sets the flag off (use suffixes for user-defined literals) for std=c++11+.
Ed
libcpp
2012-11-09 Ed Smith-Rowland <3dw...@verizon.net>
PR c++/54413
* include/cpplib.h (cpp_interpret_float_suffix): Add cpp_reader* arg.
(cpp_interpret_int_s
rules by default. But if -std=c++1y is used as the C++ standard then
the flags are off by default allowing use as C+11 user-defined literals.
I would like to get this into 4.8 if I can.
It passes on x86_64 linux.
Regards,
Ed
libcpp
2012-11-05 Ed Smith-Rowland <3dw...@verizon.
On 10/26/2012 10:26 AM, Paolo Carlini wrote:
On 10/26/2012 04:11 PM, Ed Smith-Rowland wrote:
Committed.
I can't find the message actually approving the patch. And personally
I'm a bit nervous about it.
Paolo.
Well, the commit had failed anyway... ChangeLog out of date.
So I'll wait.
Ed
On 10/26/2012 10:26 AM, Paolo Carlini wrote:
On 10/26/2012 04:11 PM, Ed Smith-Rowland wrote:
Committed.
I can't find the message actually approving the patch. And personally
I'm a bit nervous about it.
Paolo.
Sorry, i though it was OK. Do you want me to roll back? do you want to?
Ed
Committed.
2012-10-26 Edward Smith-Rowland <3dw...@verizon.net>
* include/std/system_error (system_error(error_code, const char*),
system_error(int, const error_category&, const char*)): New.
* include/std/stdexcept ( logic_error(const char*),
domain_error(const
On 10/12/2012 10:50 AM, Paolo Carlini wrote:
On 10/12/2012 04:19 PM, Ed Smith-Rowland wrote:
These are my last two random distribution extensions for now.
Thanks a lot!
The main on is the Hoyt distribution (AKA the Nakagami-q
distribution). It uses the arcsine with specified basis. The
On 09/21/2012 05:33 AM, Paolo Carlini wrote:
On 09/21/2012 11:02 AM, Ulrich Drepper wrote:
On Thu, Sep 20, 2012 at 6:17 AM, Paolo Carlini
wrote:
Patch looks generally Ok to me. If Ulrich and the other interested
parties
don't have anything to add over the next 24 hrs or so, let's go
ahead and
On 09/18/2012 10:28 AM, Paolo Carlini wrote:
On 09/18/2012 03:23 AM, Ed Smith-Rowland wrote:
Here is another tweak for the Nakagami distribution.
operator() is a one liner without a local variable.
The template friend is fixed and the relevant test has been added.
Changed dates.
If this
I initialized an adapted urng that was not needed or used in the
rice_distribution extension.
2012-09-16 Edward Smith-Rowland <3dw...@verizon.net>
* include/ext/random.tcc (__gnu_cxx::rice_distribution<>
::__generate_impl): Remove bogus _Adaptor usage.
Index: include/ext/rand
On 09/16/2012 06:29 PM, Paolo Carlini wrote:
On 09/16/2012 11:18 PM, Paolo Carlini wrote:
On 09/16/2012 10:02 PM, Marc Glisse wrote:
On Sun, 16 Sep 2012, Ed Smith-Rowland wrote:
This adds the Rice distribution to the C++11 facility and
a Gnu extension.
Hello,
libstdc++ not in copy?
The
This adds the Rice distribution to the C++11 facility and a Gnu
extension.
2012-09-14 Edward Smith-Rowland <3dw...@verizon.net>
* include/ext/random: Add __gnu_cxx::rice_distribution<> class.
* include/ext/random.tcc: Add out-of-line functions for
__gnu_cxx::rice_dist
On 08/25/2012 07:39 PM, Ulrich Drepper wrote:
On Sat, Aug 25, 2012 at 7:37 PM, Jonathan Wakely wrote:
But iterators don't have to imply non-sequential storage. Using
iterators instead of pointers would allow you to store them in a
std::deque, for example, or in a std::vector using
std::back_ins
On 06/24/2012 07:19 AM, Jonathan Wakely wrote:
This looks good too, again please CC gcc-patches with a changelog
entry and confirmation it was tested and it can go in. Thanks.
Built and tested on x86_64-linux-gnu.
2012-06-25 Edward Smith-Rowland <3dw...@verizon.net>
* include/tr2/b
On 06/24/2012 07:18 AM, Jonathan Wakely wrote:
On 24 June 2012 12:18, Jonathan Wakely wrote:
On 24 June 2012 05:00, Ed Smith-Rowland wrote:
Subject says it.
This looks good, please CC gcc-patches with a changelog entry and
confirmation it was tested and it can go in. Thanks.
And don
Hi,
Built and tested on x86_64-linux-gnu.
Seems safe enough to go in now, Ok.
Thanks,
Paolo.
2012-02-14 Edward Smith-Rowland <3dw...@verizon.net>
* testsuite/26_numerics/random/
uniform_real_distribution/requirements/typedefs.cc: Check param_type.
* testsuite/
On 12/06/2011 02:27 PM, Jason Merrill wrote:
On 12/06/2011 08:21 AM, Ed Smith-Rowland wrote:
* parser.c (lookup_literal_operator): Check that current overload
is function_type.
Instead of checking here, let's check is_overloaded_fn (decl) right
after the lookup name.
Jason
OK,
This time with patch.
gcc/testsuite:
2011-12-06 Ed Smith-Rowland <3dw...@verizon.net>
PR c++/51420
* g++.dg/cpp0x/pr51420.C: New.
gcc/cp:
2011-12-06 Ed Smith-Rowland <3dw...@verizon.net>
PR c++/51420
* parser.c (lookup_literal_operator): Check that current ove
gcc/testsuite:
2011-12-06 Ed Smith-Rowland <3dw...@verizon.net>
PR c++/51420
* g++.dg/cpp0x/pr51420.C: New.
gcc/cp:
2011-12-06 Ed Smith-Rowland <3dw...@verizon.net>
PR c++/51420
* parser.c (lookup_literal_operator): Check that current overload
is function_type.
Ping.
There's a patch that should do the literal operator resolution correctly
and resolve PR50958:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50958
Thanks,
Ed
I just wanted to do a little clean up on the user-defined literal code.
Index: gcc/testsuite/g++.dg/cpp0x/udlit-raw-op-string-neg.C
===
--- gcc/testsuite/g++.dg/cpp0x/udlit-raw-op-string-neg.C(revision
181376)
+++ gcc/testsu
| decl == error_mark_node)
{
- error ("unable to find user-defined string literal operator %qD", name);
- release_tree_vector (vec);
+ if (have_size)
+ error ("unable to find string literal operator %qD with %qT, %qT"
+ " arguments&q
nd string literal operator %qD with %qT, %qT"
+ " arguments", name, TREE_TYPE (value), size_type_node);
+ else
+ error ("unable to find valid string literal operator %qD."
+ " Possible missing length argument in string literal ope
On 11/03/2011 08:50 AM, Paolo Carlini wrote:
On 11/03/2011 12:56 PM, Ed Smith-Rowland wrote:
+ len = TREE_STRING_LENGTH (value)
+/ TREE_INT_CST_LOW (TYPE_SIZE_UNIT ( TREE_TYPE(TREE_TYPE
(value - 1;
... with open brackets in random positions ;)
Paolo.
Arrrgh! ;-)
Here's
));
value = USERDEF_LITERAL_VALUE (literal);
- len = TREE_STRING_LENGTH (value) - 1;
-
+ len = TREE_STRING_LENGTH (value)
+ / TREE_INT_CST_LOW (TYPE_SIZE_UNIT ( TREE_TYPE(TREE_TYPE (value - 1;
/* Build up a call to the user-defined operator */
/* Lookup the name we got back from
On 10/27/2011 03:47 PM, Jason Merrill wrote:
On 10/27/2011 03:32 PM, Ed Smith-Rowland wrote:
+ if (TREE_CODE (TREE_TYPE (decl)) != LANG_TYPE)
+argtypes = TYPE_ARG_TYPES (TREE_TYPE (decl));
If you have multiple overloaded operator"" _foo, you need to iterate
over them looking f
On 10/26/2011 03:38 PM, Jason Merrill wrote:
On 10/26/2011 02:00 AM, Ed Smith-Rowland wrote:
The patch was bootstrapped and regtested on x86_64-linux-gnu.
Really? I ran into a warning about the unused "suffix" parameter to
interpret_integer. So I've fixed that error. I also ad
On 10/26/2011 03:38 PM, Jason Merrill wrote:
On 10/26/2011 02:00 AM, Ed Smith-Rowland wrote:
The patch was bootstrapped and regtested on x86_64-linux-gnu.
Really? I ran into a warning about the unused "suffix" parameter to
interpret_integer. So I've fixed that error. I also
On 10/21/2011 05:20 PM, Jason Merrill wrote:
I think we're down to minor cosmetic issues:
On 10/21/2011 03:55 PM, Tom Tromey wrote:
There are a few spots like this that are missing a space before an open
paren.
+ if (DECL_LANGUAGE(decl) == lang_c)
Another one.
- if (warn_cx
On 10/19/2011 06:48 PM, Benjamin Kosnik wrote:
Hi Edward!
I have reviewed and selectively merged your development
branch, libstdcxx-tr2-ideas-branch, into trunk. As ISO C++ is now
looking at new library efforts for TR2 (and N2965 has already been
checked in to trunk) I thought it well-timed.
Pl
On 10/11/2011 12:57 PM, Jason Merrill wrote:
On 10/11/2011 12:55 PM, Jason Merrill wrote:
On 10/09/2011 07:19 PM, Ed Smith-Rowland wrote:
Does cp_parser_identifier (parser) *not* consume the identifier token?
I'm pretty sure it does.
It does.
Does it work to only compla
On 10/08/2011 07:15 PM, Jason Merrill wrote:
On 10/08/2011 07:25 PM, Ed Smith-Rowland wrote:
Also, In spite of the documentation cp_parser_template_parameter_list
returns a TREE_VEC not a TREE_LIST. This happens inside
end_template_parm_list called inside the former. So parameter_list is a
On 07/12/2011 04:56 PM, Jason Merrill wrote:
A few more notes:
+ if (DECL_NAMESPACE_SCOPE_P (decl))
+ {
+ if (!check_literal_operator_args(decl,
+ &long_long_unsigned_p, &long_double_p))
+ {
+ error ("%qD has illegal argument list", decl);
+
All,
Here is a trivial addition to include scoped_allocator in the
precompiled headers.
It bootstrapped and regtested on x86_64 linux.
Ed
2011-07-20 Ed Smith-Rowland <3dw...@verizon.net>
* include/precompiled/stdc++.h: Add scoped_allocator.
Index: include/precompiled/st
On 07/12/2011 04:56 PM, Jason Merrill wrote:
A few more notes:
+ if (DECL_NAMESPACE_SCOPE_P (decl))
+ {
+ if (!check_literal_operator_args(decl,
+ &long_long_unsigned_p, &long_double_p))
+ {
+ error ("%qD has illegal argument list", decl);
+
301 - 334 of 334 matches
Mail list logo