public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/13698] New: Parsing error for new constructs @ 2004-01-15 13:43 paolo at gcc dot gnu dot org 2004-01-15 15:09 ` [Bug c++/13698] " bangerth at dealii dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: paolo at gcc dot gnu dot org @ 2004-01-15 13:43 UTC (permalink / raw) To: gcc-bugs Current mainline cannot parse the following: int main () { new void*; new (void*); new void* [2]; new (void*) [2]; // gcc 3.4 fails new (int (*[10])()); new (int (*[10])()) [2]; // gcc 3.4 fails } paolo:~> g++ -c arvin.cc arvin.cc: In function `int main()': arvin.cc:8: error: expected `;' arvin.cc:11: error: expected `;' Seems a regression: is accepted by both 3.3.2 and icc8 in strict mode. -- Summary: Parsing error for new constructs Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: paolo at gcc dot gnu dot org CC: aj at suse dot de,arvin at suse dot de,gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13698 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13698] Parsing error for new constructs 2004-01-15 13:43 [Bug c++/13698] New: Parsing error for new constructs paolo at gcc dot gnu dot org @ 2004-01-15 15:09 ` bangerth at dealii dot org 2004-01-15 15:28 ` paolo at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: bangerth at dealii dot org @ 2004-01-15 15:09 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From bangerth at dealii dot org 2004-01-15 15:09 ------- I recall that this code was illegal, and a patch to no longer accept it. I can't find it right now, though. Mark, I believe you did that patch, can you comment? W. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at codesourcery dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13698 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13698] Parsing error for new constructs 2004-01-15 13:43 [Bug c++/13698] New: Parsing error for new constructs paolo at gcc dot gnu dot org 2004-01-15 15:09 ` [Bug c++/13698] " bangerth at dealii dot org @ 2004-01-15 15:28 ` paolo at gcc dot gnu dot org 2004-01-15 15:29 ` giovannibajo at libero dot it 2004-01-15 16:27 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: paolo at gcc dot gnu dot org @ 2004-01-15 15:28 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From paolo at gcc dot gnu dot org 2004-01-15 15:28 ------- ... the diagnostic could be improved a bit... ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13698 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13698] Parsing error for new constructs 2004-01-15 13:43 [Bug c++/13698] New: Parsing error for new constructs paolo at gcc dot gnu dot org 2004-01-15 15:09 ` [Bug c++/13698] " bangerth at dealii dot org 2004-01-15 15:28 ` paolo at gcc dot gnu dot org @ 2004-01-15 15:29 ` giovannibajo at libero dot it 2004-01-15 16:27 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: giovannibajo at libero dot it @ 2004-01-15 15:29 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From giovannibajo at libero dot it 2004-01-15 15:29 ------- FWIW It looks legal to me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13698 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/13698] Parsing error for new constructs 2004-01-15 13:43 [Bug c++/13698] New: Parsing error for new constructs paolo at gcc dot gnu dot org ` (2 preceding siblings ...) 2004-01-15 15:29 ` giovannibajo at libero dot it @ 2004-01-15 16:27 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-01-15 16:27 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-15 16:27 ------- I almost sure that part of this is a dup of bug 3100. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13698 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-15 16:27 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-01-15 13:43 [Bug c++/13698] New: Parsing error for new constructs paolo at gcc dot gnu dot org 2004-01-15 15:09 ` [Bug c++/13698] " bangerth at dealii dot org 2004-01-15 15:28 ` paolo at gcc dot gnu dot org 2004-01-15 15:29 ` giovannibajo at libero dot it 2004-01-15 16:27 ` pinskia at gcc dot gnu dot 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).