[Bug c++/57437] C++11: mutable lambdas; gcc 4.7-4.8

2013-05-27 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57437 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57444] ICE in instantiate_type for invalid use of member with using-declaration

2013-05-28 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57444 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57460] New: [C++11] Sfinae doesn't respect dependent context

2013-05-29 Thread daniel.kruegler at googlemail dot com
onent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com gcc 4.9.0 20130519 (experimental) compiled with the flags -std=c++11 -Wall -pedantic-errors rejects the following code: // int get_int(); #d

[Bug c++/57466] Argument deduction fails for 'const T*' when T is function type

2013-05-30 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57466 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57480] struct with a va_list considered as non-POD

2013-05-31 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57480 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57480] struct with a va_list considered as non-POD

2013-05-31 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57480 --- Comment #3 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #2) My interprettaion is that the standard does not say anything about that (I think I had once a similar question in regard to another type from the C Library). I su

[Bug c++/57484] 'std::numeric_limits< T >::signaling_NaN()' signaling-bit is incorrect for x86 32-bit.

2013-05-31 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57484 --- Comment #1 from Daniel Krügler --- I haven't checked your bit arithmetics, but I have checked the full bit patterns of the resulting NaNs in hex on my mingw-64 bit system. What I'm getting for are the following results: 1) gcc 4.7.2/4.9.0 201

[Bug c++/57484] 'std::numeric_limits< T >::signaling_NaN()' signaling-bit is incorrect for x86 32-bit.

2013-06-01 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57484 --- Comment #4 from Daniel Krügler --- (In reply to Charles L. Wilcox from comment #3) > Signaling NaN for type "f" in hex is "7fe0". I agree, this one doesn't look right to me, because that looks indeed like a valid qNaN bit pattern only. >

[Bug c++/57502] Expected error "Declaration doesn't declare anything", but code compiles fine for user-defined class with using decltype, but not with built-in types.

2013-06-02 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57502 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57504] invalid this pointer passed in call to virtual function that returns a struct

2013-06-02 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57504 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/57505] [C++11] destructor of std::function should be noexcept

2013-06-02 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57505 --- Comment #2 from Daniel Krügler --- This is fixed in gcc 4.9 trunk and I believe it has already been fixed in gcc 4.8 due to bug #50043.

[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2013-06-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57543] decltype needs explicit 'this' pointer in member function declaration of template class with trailing return type

2013-06-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57543 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57570] Deduction succeeds despite type mismatch of non-type template parameter and deduced argument

2013-06-09 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57570 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57575] lvalue function accepted as an rvalue

2013-06-10 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57575 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 --- Comment #5 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #2) > Although shouldn't it fail to compile, due to private destructor and copy > constructor? I agree, it should fail. Interesting is, that the code compiles even w

[Bug c++/57595] [C++11] Destructor defaulted on first declaration is treated as public

2013-06-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57595 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57599] result of dynamic_cast is just T

2013-06-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57599 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57610] Reference initialized with temporary instead of sub-object of conversion result

2013-06-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57610 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57614] Friend declaration and qualified class member access

2013-06-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57614 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57626] [C++11] ICE with template alias and member function pointer

2013-06-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57626 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57632] Operator new overloads with stdc++11 enabled looses exception specifier (MacOsX)

2013-06-17 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57632 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57746] rejected valid specialization of member function of class template (I think)

2013-06-29 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57746 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57746] rejected valid specialization of member function of class template (I think)

2013-06-30 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57746 --- Comment #3 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #2) > It does for G++, it's been accepted as an extension in C++03 mode for years. What I actually meant to say with my comment is that for a proper bug report the c

[Bug c++/57764] class static constexpr variables cannot be references

2013-07-01 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57764 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57746] rejected valid specialization of member function of class template (I think)

2013-07-02 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57746 --- Comment #7 from Daniel Krügler --- (In reply to Andy Lutomirski from comment #4) > Daniel, I'm unconvinced that your interpretation is the intended one. Well, [temp.spec] p5 says more strongly that an explicit instantiation shall only follow

[Bug c++/57775] default argument for template parameter error for friend definition in template

2013-07-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57775 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57793] [4.7/4.8/4.9 Regression] ICE with bitfields in get_bit_range

2013-07-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57793 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/49022] [C++0x][DR 2058] std::begin and std::end specialized for std::valarray with some operators are missing.

2013-07-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49022 --- Comment #28 from Daniel Krügler --- (In reply to Paolo Carlini from comment #27) Yes.

[Bug c++/57825] Template specialization for ref qualified member pointers

2013-07-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57825 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57825] Template specialization for ref qualified member pointers

2013-07-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57825 --- Comment #4 from Daniel Krügler --- (In reply to Tomasz Kamiński from comment #2) > Propably this is also causing the problem with the standard library > is_function and is_member function traits, because they cannot be > implemented correclty.

[Bug c++/57825] Template specialization for ref qualified member pointers

2013-07-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57825 --- Comment #5 from Daniel Krügler --- (In reply to Paolo Carlini from comment #3) > Daniel, which library testcases did we commit?!? ;) Crazy. During an intermediate state we had bug 57388 which prevented for some time the proper specialization

[Bug c++/57869] New: [C++11] Casting a object pointer to a function pointer should not warn about a forbidden conversion

2013-07-09 Thread daniel.kruegler at googlemail dot com
Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com gcc 4.9.0 20130616 (experimental) diagnoses a warning for the following code compiled with the flags: -Wall

[Bug c++/57888] using non-type template parameter in constexpr function for non static data member intializer segfaults

2013-07-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57888 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57892] g++ internal compiler error: in expand_expr_real_1, at expr.c:9122 while attempting to brace-initialize a dynamically allocated array class member

2013-07-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57892 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58040] Cannot take address-of public using-declaration of member from protected base class

2013-08-01 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58040 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58074] New: [C++11] __is_trivial intrinsic fails for deleted members and for non-trivial copy-c'tors

2013-08-03 Thread daniel.kruegler at googlemail dot com
IRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com The following observations where originally found by testing the std::is_trivial trait from , but the actual problem see

[Bug c++/58046] template operator= in SFINAE class

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58046 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58062] [C++11] bogus __func__ lookup in lambda body

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58062 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 --- Comment #3 from Daniel Krügler --- (In reply to Paolo Carlini from comment #2) > I suppose a minimal reproducer could involve a file scope static of some > sort... I'm a bit confused by your reply, Paolo: Isn't my_cout also a "file scope sta

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 --- Comment #6 from Daniel Krügler --- (In reply to Paolo Carlini from comment #5) > Ah, in case isn't obvious already: it only happens when the "I/O expression" > has the ! operator in front. I suspected that and ensured that I added a similar o

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 --- Comment #8 from Daniel Krügler --- (In reply to Paolo Carlini from comment #7) > But it happens with -O0 too, right? Yes. > In any case we badly need a reduced testcase ;) I agree. Unfortunately I'm on vacations from tomorrow on (1 week), s

[Bug c++/58083] [4.8/4.9 Regression] ICE with lambda as default parameter of a template function

2013-08-13 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58083 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58181] A bug in lambda expression

2013-08-17 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58181 --- Comment #3 from Daniel Krügler --- My understanding is that the presented program has undefined behaviour and that its assertion may fail or may not. The reason being that the outer lambda expression has return type std::tuple (where LI stands

[Bug c++/58184] Pointer to overloaded function is non-deduced context

2013-08-18 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58184 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58191] Can't use boost transform_iterator with _GLIBCXX_DEBUG

2013-08-19 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58191 --- Comment #3 from Daniel Krügler --- First, this issue should be categorized as belonging to the component "libstdc++", not to "c++". Second, the defect report is invalid, because std::upper_bound requires a minimum iterator category of "forwar

[Bug c++/58191] Can't use boost transform_iterator with _GLIBCXX_DEBUG

2013-08-19 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58191 --- Comment #5 from Daniel Krügler --- (In reply to Paolo Carlini from comment #2) > Francois, did we change anything in the library for 4.8.x? I think that Francois added more iterator concept checking and this one looks correct. Unfortunately I

[Bug c++/53025] [C++11] noexcept operator depends on copy-elision

2013-08-24 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53025 --- Comment #3 from Daniel Krügler --- This is just a polite reminder for some response. I'm especially interested to hear whether there exist any reasonable doubts on the validity of the arguments brought forward. IMO it is important to fix at, b

[Bug libstdc++/58265] std::string move assignment should be noexcept

2013-08-31 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58265 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/58338] Add noexcept to functions with a narrow contract

2013-09-06 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58338 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58352] infinite template instantiation depth errors

2013-09-07 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58352 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/58352] infinite template instantiation depth errors

2013-09-07 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58352 --- Comment #3 from Daniel Krügler --- (In reply to 1zeeky from comment #2) > I am aware that the code is invalid; I'm not saying there shouldn't be an > error. Then I was mislead by your comment: "I'm not 100% sure the attached testcase *should*

[Bug c++/58352] infinite template instantiation depth errors

2013-09-07 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58352 --- Comment #4 from Daniel Krügler --- Maybe related to bug 16564?

[Bug c++/58353] Internal Compiler Error with Variadic Templates

2013-09-07 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58353 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/58358] [4.7/4.8/4.9 Regression] search_n has a Complexity violation for random access iterator

2013-09-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58358 --- Comment #9 from Daniel Krügler --- (In reply to Paolo Carlini from comment #8) > About the duplication, you may want to review what Francois posted to the > mailing list a few days ago and send your comments. Personally, I agree it > would be

[Bug c++/58407] [C++11] Should warn about deprecated implicit generation of copy constructor/assignment

2013-09-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58407 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/50157] New: [C++0x] Non-silent SFINAE in new expression with explicit conversion

2011-08-22 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50157 Bug #: 50157 Summary: [C++0x] Non-silent SFINAE in new expression with explicit conversion Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRME

[Bug c++/47436] Variadic base-specifier-list of union rejected

2011-08-22 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-08-22 22:26:07 UTC --- Based on the FDIS wording (14.6 p. 8) this example should be ill-formed. But maybe the diagnostic could be improved?

[Bug c++/50209] New: [C++0x] Braced-init-lists are rejected as function default arguments

2011-08-27 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50209 Bug #: 50209 Summary: [C++0x] Braced-init-lists are rejected as function default arguments Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRME

[Bug c++/50233] Internal compiler error: in build_value_init_noctor, at cp/init.c:336

2011-08-29 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-08-30 06:33:44 UTC --- Seems to be fixed in 4.7.0 (Tested with 4.7.0 20110820 (experimental))

[Bug c++/50233] Internal compiler error: in build_value_init_noctor, at cp/init.c:336

2011-08-30 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50233 --- Comment #3 from Daniel Krügler 2011-08-30 09:30:48 UTC --- (In reply to comment #2) > Good. 4_6-branch behaves the same. Do we agree that GCC is correct in > rejecting > this (without ICE-ing of course)? I think that gcc is right rejecting

[Bug c++/49171] [C++0x][constexpr] Constant expressions support reinterpret_cast

2011-08-30 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49171 --- Comment #2 from Daniel Krügler 2011-08-30 09:39:43 UTC --- I believe I found a conforming usage of reinterpret_cast in constant expressions useable in C++03: // struct X { X* operator&(); }; X x[2]; const bool p = (reinter

[Bug c++/50233] Internal compiler error: in build_value_init_noctor, at cp/init.c:336

2011-08-30 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50233 --- Comment #5 from Daniel Krügler 2011-08-30 09:52:19 UTC --- I just notice that the current exclusion of reinterpret_cast in constant expressions would make it impossible to define addressof as a constexpr function. C++11 currently invalidates

[Bug c++/49447] operator= (and compound assignment ops) does not perfectly forward

2011-09-04 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-09-05 06:38:19 UTC --- It seems that this problem had been fixed now. The example code successfully compiles with gcc 4.7.0 20110903 (experimental).

[Bug libstdc++/46906] istreambuf_iterator is late?

2011-09-05 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #4 from Daniel Krügler 2011-09-05 09:48:17 UTC --- IMO the example program is broken and cannot be used to proof violation of contract of the library. This is so, because istreambuf_iterator is an input iterator and any usage of operator

[Bug libstdc++/46906] istreambuf_iterator is late?

2011-09-05 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46906 --- Comment #6 from Daniel Krügler 2011-09-05 11:11:26 UTC --- (In reply to comment #5) > On the other hand, it looks like I can > construct i2 from s (instead of copying from i1) and still hit the same issue > with a valid program. Do you agree?

[Bug libstdc++/46906] istreambuf_iterator is late?

2011-09-05 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46906 --- Comment #8 from Daniel Krügler 2011-09-05 12:56:44 UTC --- (In reply to comment #7) > Oh, are you saying that this rule has priority over the one that says that > operator* just forwards to sgetc? This was not my intention, but I recognize

[Bug libstdc++/46906] istreambuf_iterator is late?

2011-09-05 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46906 --- Comment #10 from Daniel Krügler 2011-09-05 14:17:14 UTC --- (In reply to comment #9) > (In reply to comment #8) > > Why do you think that either implementation form could be > > considered as non-conforming? > > When I read that operator* re

[Bug c++/47765] Wrong template deduction

2011-09-08 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-09-08 09:20:26 UTC --- This problem seems still to exist in gcc 4.7.0 20110903 (experimental)

[Bug c++/47765] Wrong template deduction

2011-09-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47765 --- Comment #4 from Daniel Krügler 2011-09-08 16:57:48 UTC --- (In reply to comment #3) In fact I expected that there is some implementation freedom which allows this (I was thinking of 14.7.1 p6), but I still wonder: I have always understood th

[Bug c++/48372] Missed error for redundant default argument on template.

2011-09-12 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #2 from Daniel Krügler 2011-09-12 21:34:55 UTC --- Isn't this a DUP of Bug 15339?

[Bug c++/50370] New: [C++0x] Multiple declarations with default template arguments accepted

2011-09-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50370 Bug #: 50370 Summary: [C++0x] Multiple declarations with default template arguments accepted Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIR

[Bug c++/50371] New: [C++0x] std::nullptr_t rejected as non-type template-parameter

2011-09-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50371 Bug #: 50371 Summary: [C++0x] std::nullptr_t rejected as non-type template-parameter Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/50478] Internal compiler error when using initializer lists

2011-09-22 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-09-22 07:19:17 UTC --- The problem seem to exist in 4.7.0 20110917 (experimental) as well, pointing to joust, at cp/call.c:7960.

[Bug c++/50479] New: Unevaluated usage of parameters in function default arguments is accepted

2011-09-22 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50479 Bug #: 50479 Summary: Unevaluated usage of parameters in function default arguments is accepted Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCON

[Bug c++/47436] [C++0x] Variadic base-specifier-list of union rejected

2011-09-22 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47436 --- Comment #3 from Daniel Krügler 2011-09-22 18:11:24 UTC --- (In reply to comment #2) > Suggestions about a better error message? (should be easy to change) What about: "error: every valid template specialization requires an empty template pa

[Bug c++/50559] g++ bails out after seeing overflow in an enumeration value

2011-09-28 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #4 from Daniel Krügler 2011-09-28 17:54:55 UTC --- (In reply to comment #3) > Reduced testcase: Just to be sure: Is this testcase rejected? If so, this seems in violation to the C++(03) standard based on 7.2 p4: "[..] Otherwise

[Bug c++/41796] ambiguous subobject diagnostic given too early

2011-09-28 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41796 --- Comment #8 from Daniel Krügler 2011-09-28 21:36:53 UTC --- (In reply to comment #7) > What happened to issue Core/983? It was originally accepted but later found out to be the wrong solution, therefore it became fixed again by CWG 1121.

[Bug c++/50586] Template argument of type "pointer to function" of a template class causes usage error if template is instantiated with pointer-to-private-static-member-function

2011-10-01 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-10-01 15:18:04 UTC --- The problem also occurs with gcc 4.7.0 20110924 (experimental)

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

2011-10-03 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #5 from Daniel Krügler 2011-10-03 13:17:11 UTC --- I would have expected that the shown program works as expected. I'm quoting ISO/IEC 14882:2003(E) (but N3290 seems to say the same): 1) [lib.replacement.functions] p2+3: &qu

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

2011-10-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #10 from Daniel Krügler 2011-10-03 13:49:01 UTC --- (In reply to comment #8) I agree that given the "make static" contract of -fwhole-program (which I was not aware about) the compiler behaves accordingly. I wonder whether it would b

[Bug libstdc++/50641] [c++0x] is_convertible and is_constructible incorrectly require copy constructibility

2011-10-06 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50641 --- Comment #2 from Daniel Krügler 2011-10-07 05:36:02 UTC --- 1) The outcome of is_constructible is expected, because you cannot construct From from To, the actually wanted test would have been static_assert(std::is_constructible::value, "not

[Bug libstdc++/50641] [c++0x] is_convertible and is_constructible incorrectly require copy constructibility

2011-10-06 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50641 --- Comment #3 from Daniel Krügler 2011-10-07 06:46:56 UTC --- (In reply to comment #2) > This looks like not-a-bug to me. This refers to the traits implementation. I believe that the core language should consider to remove the need for the temp

[Bug libstdc++/50641] [c++0x] is_convertible and is_constructible incorrectly require copy constructibility

2011-10-07 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50641 --- Comment #5 from Daniel Krügler 2011-10-07 07:13:50 UTC --- (In reply to comment #4) > N3242 says that From needs to be > "convertible" to To, but I'm not at all convinced that "convertible" means the > same thing as "is_convertible". Maybe i

[Bug c++/50785] [C++0x] static constexpr double undefined reference

2011-10-19 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50785 --- Comment #8 from Daniel Krügler 2011-10-19 12:54:24 UTC --- I agree that the test case should require the definition of the static member, the actual reason being that the constraint in 3.2 p2, "[..] unless it is an object that satisfies the

[Bug c++/50785] [C++0x] static constexpr double undefined reference

2011-10-19 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50785 --- Comment #10 from Daniel Krügler 2011-10-19 13:07:44 UTC --- (In reply to comment #9) > I disagree. It is odr-used because the lvalue-to-rvalue conversions is not > immediately applied. > > In (1*test::value) the lvalue-to-rvalue conversion

[Bug c++/50830] [c++0x] Variadic template, inner class error

2011-10-22 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50830 --- Comment #4 from Daniel Krügler 2011-10-22 21:15:20 UTC --- (In reply to comment #3) I agree, but the partial specialization template class... F, class T> struct test, T>; should be fine, because only primary class templates require a templa

[Bug c++/50830] [c++0x] Variadic template, inner class error

2011-10-23 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50830 --- Comment #6 from Daniel Krügler 2011-10-23 09:51:44 UTC --- [I assume you refer to p8 and the sentence: "If an argument is a pack expansion (14.5.3), it shall be the last argument in the template argument list."] No. list_templates is not an

[Bug c++/50830] [c++0x] Variadic template, inner class error

2011-10-23 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50830 --- Comment #7 from Daniel Krügler 2011-10-23 10:02:19 UTC --- I can only guess that there is a compiler defect in regard to handling variadic template template parameters. The corresponding example template struct S; template struct X; templa

[Bug c++/50835] [4.7 Regression] Lvalue-ness of conditional operator results is incorrect in a function template

2011-10-23 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50835 --- Comment #1 from Daniel Krügler 2011-10-23 11:47:19 UTC --- Simplified test case: //--- template struct vector {}; template struct rvalue_probe { explicit rvalue_probe(T &t) : value(t) {} operator T&() const { return value; } T

[Bug c++/50835] [4.7 Regression] Lvalue-ness of conditional operator results is incorrect in a function template

2011-10-23 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50835 --- Comment #2 from Daniel Krügler 2011-10-23 11:50:17 UTC --- Further simplification: //--- struct vector {}; template struct rvalue_probe { explicit rvalue_probe(T &t) : value(t) {} operator T&() const { return value; } T& value

[Bug c++/50835] [4.7 Regression] Lvalue-ness of conditional operator results is incorrect in a function template

2011-10-23 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50835 --- Comment #3 from Daniel Krügler 2011-10-23 12:23:41 UTC --- Removing as much templates as possible: //--- struct A {}; struct B { explicit B(A &t) : value(t) {} operator A&() const { return value; } A& value; }; void should_be_l

[Bug c++/50839] Array parameters always take lower precedence than pointer parameters

2011-10-23 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2011-10-23 21:30:05 UTC --- According to [dcl.fct] p5, "any parameter of type “array of T” or “function returning T” is adjusted to be “pointer to T” or “pointer to function returning T,” respectively. [..

[Bug c++/50864] [4.6/4.7 Regression] ICE with decltype and "declval" from another namespace

2011-10-25 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50864 --- Comment #8 from Daniel Krügler 2011-10-25 18:08:01 UTC --- (In reply to comment #7) > The arrow operator (vs, eg, +) seems also essential. That makes sense to me, because the code could never be valid, so I would suggest that the keyword is

[Bug c++/50864] [4.6/4.7 Regression] ICE with decltype and "declval" from another namespace

2011-10-25 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50864 --- Comment #10 from Daniel Krügler 2011-10-25 18:28:56 UTC --- (In reply to comment #9) > Now, however, in the light of the second half of your message, I guess we > should have another PR for the ICE on valid issue. Are you willing to open it?

[Bug c++/50870] New: [C++0x] ICE with decltype, operator->, and default template arguments

2011-10-25 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50870 Bug #: 50870 Summary: [C++0x] ICE with decltype, operator->, and default template arguments Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRM

[Bug c++/50864] [4.6/4.7 Regression] ICE with decltype and "declval" from another namespace

2011-10-25 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50864 --- Comment #11 from Daniel Krügler 2011-10-25 19:17:51 UTC --- (In reply to comment #10) See bug 50870

[Bug c++/50025] C++0x initialization syntax doesn't work for class members of reference type

2011-10-26 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50025 --- Comment #6 from Daniel Krügler 2011-10-26 10:44:55 UTC --- The corresponding CWG issue is http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1288

<    1   2   3   4   5   6   7   8   9   >