public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic
@ 2011-03-25 13:58 redi at gcc dot gnu.org
2011-04-08 18:49 ` [Bug c++/48284] [C++0x] incorrect printing " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-25 13:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48284
Summary: [C++0x] incorrect demangling of decltype operand in
diagnostic
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
template<typename C>
auto g(C& c) -> decltype (c.f()) { return c.f(); }
template<typename C>
auto g(C& c) -> decltype (c.f()) { return c.f(); }
x.C:5:32: error: redefinition of 'template<class C> decltype (c->f()) g(C&)'
x.C:2:32: error: 'template<class C> decltype (c->f()) g(C&)' previously
declared here
The diagnostics show c->f() instead of c.f()
Same result for 4.5 and 4.6, I didn't try 4.7
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48284] [C++0x] incorrect printing of decltype operand in diagnostic
2011-03-25 13:58 [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic redi at gcc dot gnu.org
@ 2011-04-08 18:49 ` pinskia at gcc dot gnu.org
2011-05-27 14:59 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-04-08 18:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48284
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.04.08 18:49:17
Summary|[C++0x] incorrect |[C++0x] incorrect printing
|demangling of decltype |of decltype operand in
|operand in diagnostic |diagnostic
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-08 18:49:17 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48284] [C++0x] incorrect printing of decltype operand in diagnostic
2011-03-25 13:58 [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic redi at gcc dot gnu.org
2011-04-08 18:49 ` [Bug c++/48284] [C++0x] incorrect printing " pinskia at gcc dot gnu.org
@ 2011-05-27 14:59 ` jason at gcc dot gnu.org
2011-05-27 19:36 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 14:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48284
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48284] [C++0x] incorrect printing of decltype operand in diagnostic
2011-03-25 13:58 [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic redi at gcc dot gnu.org
2011-04-08 18:49 ` [Bug c++/48284] [C++0x] incorrect printing " pinskia at gcc dot gnu.org
2011-05-27 14:59 ` jason at gcc dot gnu.org
@ 2011-05-27 19:36 ` jason at gcc dot gnu.org
2011-05-27 20:49 ` jason at gcc dot gnu.org
2011-05-27 20:50 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 19:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48284
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-27 19:32:01 UTC ---
Author: jason
Date: Fri May 27 19:31:59 2011
New Revision: 174353
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174353
Log:
PR c++/48284
* error.c (dump_expr) [COMPONENT_REF]: Use pp_cxx_dot
with INDIRECT_REF of REFERENCE_TYPE.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/error6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48284] [C++0x] incorrect printing of decltype operand in diagnostic
2011-03-25 13:58 [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic redi at gcc dot gnu.org
` (2 preceding siblings ...)
2011-05-27 19:36 ` jason at gcc dot gnu.org
@ 2011-05-27 20:49 ` jason at gcc dot gnu.org
2011-05-27 20:50 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 20:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48284
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-27 20:48:19 UTC ---
Author: jason
Date: Fri May 27 20:48:17 2011
New Revision: 174362
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174362
Log:
PR c++/48284
* error.c (dump_expr) [COMPONENT_REF]: Use pp_cxx_dot
with INDIRECT_REF of REFERENCE_TYPE.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/error6.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/error.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48284] [C++0x] incorrect printing of decltype operand in diagnostic
2011-03-25 13:58 [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic redi at gcc dot gnu.org
` (3 preceding siblings ...)
2011-05-27 20:49 ` jason at gcc dot gnu.org
@ 2011-05-27 20:50 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 20:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48284
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-27 20:48:38 UTC ---
Fixed for 4.6.1.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-05-27 20:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-25 13:58 [Bug c++/48284] New: [C++0x] incorrect demangling of decltype operand in diagnostic redi at gcc dot gnu.org
2011-04-08 18:49 ` [Bug c++/48284] [C++0x] incorrect printing " pinskia at gcc dot gnu.org
2011-05-27 14:59 ` jason at gcc dot gnu.org
2011-05-27 19:36 ` jason at gcc dot gnu.org
2011-05-27 20:49 ` jason at gcc dot gnu.org
2011-05-27 20:50 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).