http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
Paolo Carlini changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #11 from paolo at gcc dot gnu.org
2012-03-02 16:18:34 UTC ---
Author: paolo
Date: Fri Mar 2 16:18:25 2012
New Revision: 184796
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184796
Log:
/cp
2012-03-02 Paolo Carlini
PR
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #9 from Jason Merrill 2012-01-25
17:32:12 UTC ---
(In reply to comment #5)
> Jason, shouldn't deduction fail for ((U*)0)->foo() with U=void instead of
> giving an error?
Yep. Need to pass complain into build_x_arrow.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #8 from Leonid Volnitsky 2012-01-25
12:29:22 UTC ---
I understand that. And thank you for giving me a hint and code for
is_container, it was more than I expected if it was non-bug. I've made the
comment only because I've thought tha
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #7 from Jonathan Wakely 2012-01-25
11:56:50 UTC ---
My code was only meant to show a possible problem with invalid expressions
using void* not to solve your issue. GCC's bugzilla isn't a tutorial site and
"my code doesn't work" isn't
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #6 from Leonid Volnitsky 2012-01-25
10:29:29 UTC ---
Also, new is_container with decltype, have value == 0 for any, non-void
type.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
Jonathan Wakely changed:
What|Removed |Added
CC||jason at gcc dot gnu.org
--- Comment #5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #4 from Jonathan Wakely 2012-01-25
09:48:32 UTC ---
not a gcc bug, you're code is invalid - values of default arguments are not
part of the function type and do not take part in deduction
you can do it in C++11 with decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #3 from Leonid Volnitsky 2012-01-25
05:04:56 UTC ---
Created attachment 26453
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26453
gcc error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #2 from Leonid Volnitsky 2012-01-25
05:04:00 UTC ---
Created attachment 26452
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26452
deque-bug.s
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #1 from Leonid Volnitsky 2012-01-25
05:03:14 UTC ---
Created attachment 26451
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26451
deque-bug.ii
12 matches
Mail list logo