public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type @ 2011-12-04 22:11 reichelt at gcc dot gnu.org 2011-12-04 23:08 ` [Bug c++/51414] " manu at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-12-04 22:11 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51414 Bug #: 51414 Summary: Broken diagnostic with invalid use of __underlying_type Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: reichelt@gcc.gnu.org A broken diagnostic is generated on trunk for the following invalid code snippet: ============================== __underlying_type(int[1]) i; ============================== bug.cc:1:25: error: '#'array_type' not supported by dump_expr#<expression error>' is not an enumeration type bug.cc:1:28: error: invalid type in declaration before ';' token ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51414] Broken diagnostic with invalid use of __underlying_type 2011-12-04 22:11 [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type reichelt at gcc dot gnu.org @ 2011-12-04 23:08 ` manu at gcc dot gnu.org 2011-12-05 10:47 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: manu at gcc dot gnu.org @ 2011-12-04 23:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51414 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-12-04 23:07:46 UTC --- Clang 3.0: pr51414.cc:1:1: error: only enumeration types have underlying types __underlying_type(int[1]) i; ^ 1 error generated. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51414] Broken diagnostic with invalid use of __underlying_type 2011-12-04 22:11 [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type reichelt at gcc dot gnu.org 2011-12-04 23:08 ` [Bug c++/51414] " manu at gcc dot gnu.org @ 2011-12-05 10:47 ` paolo.carlini at oracle dot com 2011-12-05 18:22 ` paolo at gcc dot gnu.org 2011-12-05 18:23 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2011-12-05 10:47 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51414 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-12-05 AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com Ever Confirmed|0 |1 --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-05 10:46:00 UTC --- Seems just a trivial thinko if mine: %qE instead of %qT. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51414] Broken diagnostic with invalid use of __underlying_type 2011-12-04 22:11 [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type reichelt at gcc dot gnu.org 2011-12-04 23:08 ` [Bug c++/51414] " manu at gcc dot gnu.org 2011-12-05 10:47 ` paolo.carlini at oracle dot com @ 2011-12-05 18:22 ` paolo at gcc dot gnu.org 2011-12-05 18:23 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo at gcc dot gnu.org @ 2011-12-05 18:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51414 --- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-05 18:21:21 UTC --- Author: paolo Date: Mon Dec 5 18:21:18 2011 New Revision: 182017 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182017 Log: /cp 2011-12-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51414 * semantics.c (finish_underlying_type): Use %qT, not %qE for the error message. /testsuite 2011-12-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51414 * g++.dg/ext/underlying_type11.C: New. Added: trunk/gcc/testsuite/g++.dg/ext/underlying_type11.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51414] Broken diagnostic with invalid use of __underlying_type 2011-12-04 22:11 [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2011-12-05 18:22 ` paolo at gcc dot gnu.org @ 2011-12-05 18:23 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2011-12-05 18:23 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51414 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.7.0 --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-05 18:22:52 UTC --- Fixed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-05 18:23 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-12-04 22:11 [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type reichelt at gcc dot gnu.org 2011-12-04 23:08 ` [Bug c++/51414] " manu at gcc dot gnu.org 2011-12-05 10:47 ` paolo.carlini at oracle dot com 2011-12-05 18:22 ` paolo at gcc dot gnu.org 2011-12-05 18:23 ` paolo.carlini at oracle dot com
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).