public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...)
@ 2012-11-08 15:10 redi at gcc dot gnu.org
2013-02-15 19:32 ` [Bug c++/55241] " jason at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-08 15:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55241
Bug #: 55241
Summary: [C++11] diagnostics show sizeof...(T) as sizeof(T...)
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
template<unsigned N>
using Num = int;
template<typename... T>
using Count = Num<sizeof...(T)>;
Count<int, char, void> i;
This is incorrectly rejected by current trunk due to Bug 54859, which reveals
that the diagnostic shows sizeof(T...) not sizeof...(T)
e.C:5:33: error: integral expression 'sizeof (T ...)' is not constant
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/55241] [C++11] diagnostics show sizeof...(T) as sizeof(T...)
2012-11-08 15:10 [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...) redi at gcc dot gnu.org
@ 2013-02-15 19:32 ` jason at gcc dot gnu.org
2013-03-17 2:35 ` jason at gcc dot gnu.org
2013-04-01 21:04 ` jason at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2013-02-15 19:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55241
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-02-15
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2013-02-15 19:32:14 UTC ---
Created attachment 29474
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29474
55241.patch
Patch waiting for 4.8 to branch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/55241] [C++11] diagnostics show sizeof...(T) as sizeof(T...)
2012-11-08 15:10 [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...) redi at gcc dot gnu.org
2013-02-15 19:32 ` [Bug c++/55241] " jason at gcc dot gnu.org
@ 2013-03-17 2:35 ` jason at gcc dot gnu.org
2013-04-01 21:04 ` jason at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2013-03-17 2:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55241
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-17 02:34:45 UTC ---
Author: jason
Date: Sun Mar 17 02:34:31 2013
New Revision: 196726
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196726
Log:
PR c++/55241
* error.c (dump_expr) [SIZEOF_EXPR]: Print sizeof... properly.
Added:
trunk/gcc/testsuite/g++.dg/diagnostic/variadic1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/error.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/55241] [C++11] diagnostics show sizeof...(T) as sizeof(T...)
2012-11-08 15:10 [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...) redi at gcc dot gnu.org
2013-02-15 19:32 ` [Bug c++/55241] " jason at gcc dot gnu.org
2013-03-17 2:35 ` jason at gcc dot gnu.org
@ 2013-04-01 21:04 ` jason at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2013-04-01 21:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55241
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.9.0
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-01 21:04:36 UTC ---
Fixed for 4.9.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-01 21:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-08 15:10 [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...) redi at gcc dot gnu.org
2013-02-15 19:32 ` [Bug c++/55241] " jason at gcc dot gnu.org
2013-03-17 2:35 ` jason at gcc dot gnu.org
2013-04-01 21:04 ` 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).