[Bug c++/33091] New: [c++0x] ICE using remove_reference on variadic param pack

2007-08-16 Thread chris dot fairles at gmail dot com
rmal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.o

[Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack

2007-08-16 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2007-08-16 15:57 --- Created an attachment (id=14065) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14065&action=view) source file that produces ICE attached source file that causes ICE -- http://gcc.gnu.org/b

[Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack

2007-08-16 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2007-08-16 15:58 --- Created an attachment (id=14066) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14066&action=view) -save-temps compiler output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33091

[Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack

2007-08-16 Thread chris dot fairles at gmail dot com
--- Comment #3 from chris dot fairles at gmail dot com 2007-08-16 15:59 --- Created an attachment (id=14067) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14067&action=view) -save-temps compiler output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33091

[Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack

2007-08-16 Thread chris dot fairles at gmail dot com
--- Comment #4 from chris dot fairles at gmail dot com 2007-08-16 16:16 --- Adding: template tuple(const tuple<_UElements...>& __in, typename std::enable_if< std::is_same< std::integral_constant, std::integral_constant>::value>::type* = 0) : _Inherit

[Bug libstdc++/33098] New: __is_convertible_helper in tr1_impl/type_traits uses deprecated add_reference

2007-08-17 Thread chris dot fairles at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33098

[Bug libstdc++/33098] __is_convertible_helper in tr1_impl/type_traits uses deprecated add_reference

2007-08-17 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2007-08-17 15:48 --- Created an attachment (id=14070) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14070&action=view) patch to fix compile error when using pointers with is_convertible -- http://gcc.gnu.org/b

[Bug libstdc++/33098] __is_convertible_helper in tr1_impl/type_traits uses deprecated add_reference

2007-08-17 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2007-08-17 15:48 --- Created an attachment (id=14071) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14071&action=view) test case that gives compile error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33098

[Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack

2007-08-28 Thread chris dot fairles at gmail dot com
--- Comment #5 from chris dot fairles at gmail dot com 2007-08-28 12:32 --- The following code snippet also causes an ICE (g++43 (GCC) 4.3.0 20070828 (experimental) with -Wall, -g and -std=c++0x) test4.cpp: In instantiation of ‘A’: test4.cpp:11: instantiated from here test4.cpp:7

[Bug c++/32128] [4.3 regression] ICE on variadic template with two parameter packs

2007-08-29 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2007-08-29 22:04 --- Not sure if this is same bug: template struct B; template struct B {}; template struct B : public B { H h; }; template class D : B<0,T...> {}; template struct E; template struct E> {

gcc-bugs@gcc.gnu.org

2008-08-11 Thread chris dot fairles at gmail dot com
ONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37089

[Bug c++/37111] Link error with a no effect lefthand operand of comma on a very small code

2008-08-13 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2008-08-13 11:34 --- You still have to define the static constant. template const int value::is; HTH, Chris -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37111

[Bug c++/37112] nested inherited class can't access protected members of base class

2008-08-13 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2008-08-13 15:32 --- You're simply trying to access a protected member variable which is not allowed. It doesn't matter if you try to access it from a member function of a sub-object of A; if you have an object of type

[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-08-17 Thread chris dot fairles at gmail dot com
--- Comment #3 from chris dot fairles at gmail dot com 2008-08-17 15:06 --- Mainline also fails on target x86_64-unknown-linux-gnu: gcc version 4.4.0 20080814 (experimental) (GCC) internal compiler error: in dependent_type_p, at cp/pt.c:15888 -- http://gcc.gnu.org/bugzilla

[Bug c++/37177] New: ICE on decltype(rel_ops::operator>);

2008-08-20 Thread chris dot fairles at gmail dot com
c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37177

[Bug c++/37288] New: ICE using auto as function return type or parameter

2008-08-30 Thread chris dot fairles at gmail dot com
gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37288

[Bug c++/37288] ICE using auto as function return type or parameter

2008-08-30 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2008-08-30 13:14 --- Also, I believe these cases are ice-on-invalid. Jason? -- chris dot fairles at gmail dot com changed: What|Removed |Added

gcc-bugs@gcc.gnu.org

2008-09-03 Thread chris dot fairles at gmail dot com
--- Comment #3 from chris dot fairles at gmail dot com 2008-09-03 20:39 --- Reduced testcase w/o the need for headers: template void f(T&& a, bool); template void f(T&& a) { f(static_cast(a), true); } int main() { int a; f(a); } undefined referenc

[Bug c++/37374] "using" shadows declaration

2008-09-04 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2008-09-04 17:33 --- mainline compiles first snippet fine. second gives: error: 'void N2::f(int)' should have been declared inside 'N2' For what its worth msvc 9 and Comeau C/C++ 4.3.10.1 compile bot

[Bug c++/37439] New: ICE using auto return-type in template function

2008-09-09 Thread chris dot fairles at gmail dot com
tus: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC tar

[Bug libstdc++/37478] New: undefined reference to `ctype const& use_facet

2008-09-11 Thread chris dot fairles at gmail dot com
ersion: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host tripl

[Bug libstdc++/37547] New: [c++0x] minmax with initializer_list gives incorrect results

2008-09-16 Thread chris dot fairles at gmail dot com
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-redhat-linux GCC host triplet: x86_64-redhat-linux GCC target triplet: x86_64-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37547

[Bug c++/35022] [4.3/4.4 regression] ICE with parameter pack in template constant parameter

2008-06-16 Thread chris dot fairles at gmail dot com
--- Comment #5 from chris dot fairles at gmail dot com 2008-06-16 19:34 --- I think this is related: template struct A{}; template class B> struct C{}; int main() { C a; } gives ICE @ pt.c:15861 (rev 136843). The line in question is: gcc_assert (TREE_CODE (t

[Bug middle-end/36633] New: warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-06-25 Thread chris dot fairles at gmail dot com
unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36633

[Bug middle-end/36633] warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-06-25 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2008-06-25 20:53 --- Created an attachment (id=15814) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15814&action=view) Test case that issues warning with compiling with -O2,-Wall -- http://gcc.gnu.org/b

[Bug middle-end/36633] warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-06-25 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2008-06-25 20:54 --- Created an attachment (id=15815) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15815&action=view) File from tree dump before subscript operator appears. -- http://gcc.gnu.org/bugzilla/show_bug

[Bug middle-end/36633] warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-06-25 Thread chris dot fairles at gmail dot com
--- Comment #3 from chris dot fairles at gmail dot com 2008-06-25 20:55 --- Created an attachment (id=15816) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15816&action=view) File from tree dump with the negative subscript index -- http://gcc.gnu.org/bugzilla/show_bug

[Bug middle-end/36633] warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-06-25 Thread chris dot fairles at gmail dot com
--- Comment #4 from chris dot fairles at gmail dot com 2008-06-25 20:56 --- Adding CC as requested. -- chris dot fairles at gmail dot com changed: What|Removed |Added

[Bug middle-end/36633] warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-06-25 Thread chris dot fairles at gmail dot com
--- Comment #5 from chris dot fairles at gmail dot com 2008-06-25 20:59 --- This bug is similar to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35593 which is fixed in mainline. -- chris dot fairles at gmail dot com changed: What|Removed |Added

[Bug c++/36695] New: [4.4 Regression] Value-initialization of reference type is allowed.

2008-07-02 Thread chris dot fairles at gmail dot com
ialization of reference type is allowed. Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot f

[Bug c++/36744] function modifying argument received by-value affects caller's variable when passed as rvalue

2008-07-06 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2008-07-06 19:33 --- (In reply to comment #0) > Consider: > > #include > > struct S > { > S(): i(2) {} //S(S const&) {} S(S const&); The cctor need only be defined as well to get the sam

[Bug c++/36744] function modifying argument received by-value affects caller's variable when passed as rvalue

2008-07-06 Thread chris dot fairles at gmail dot com
--- Comment #3 from chris dot fairles at gmail dot com 2008-07-06 19:51 --- (In reply to comment #2) > (In reply to comment #0) > > struct S > > { > > S(): i(2) {} > //S(S const&) {} > S(S const&); > The cctor need only be defined as we

[Bug c++/36633] [4.4 regression] warning "array subscript is below array bounds" on delete [] with -O2, -Wall

2008-07-10 Thread chris dot fairles at gmail dot com
--- Comment #11 from chris dot fairles at gmail dot com 2008-07-10 13:41 --- On x64_64, alignof(smart_ptr) == sizeof(size_t) == 8. So then the size of the array is stored in the 8 bytes prior to the address of the returned pointer from new[]. In the delete[] call, its offsetting the

[Bug c++/36963] New: [4.4 Regression] Bogus narrowing conversion error in initializer list.

2008-07-29 Thread chris dot fairles at gmail dot com
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36963

[Bug c++/37006] New: explicitly deleted inline function gives warning "used but never defined"

2008-08-01 Thread chris dot fairles at gmail dot com
t; Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-li

[Bug c++/37006] explicitly deleted inline function gives warning "used but never defined"

2008-08-01 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2008-08-02 02:11 --- Also note that the boolean conversion operators aren't required to get the warning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37006

[Bug c++/36963] [4.4 Regression] Bogus narrowing conversion error in initializer list.

2008-08-02 Thread chris dot fairles at gmail dot com
--- Comment #2 from chris dot fairles at gmail dot com 2008-08-02 18:41 --- (In reply to comment #1) > AFAIK, the error is a request of the c++0x standard and it seems -0.02435L > does > not fit exactly in a float while -0.25L does, so the message is correct and I >