public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "claus dot tondering at teknologisk dot dk" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/17082] New: Erroneous error message when using arrays in double constructor Date: Wed, 18 Aug 2004 12:59:00 -0000 [thread overview] Message-ID: <20040818125920.17082.claus.tondering@teknologisk.dk> (raw) The following code cannot be compiled with g++. g++ prints this error message for the the declartion of s1: error: syntax error before `,' token Switching the arguments arr[0] and 3 causes the error message to go away. Error seen on a Cygwin system running g++ version 3.3.1 and on a GNU/Linux system running g++ version 3.2.2. ----------------------------------------------------------- class A { public: A(int i, int j); }; class B { public: B(A n); }; int arr[10]; void func() { B s1( A(arr[0], 3) ); } -- Summary: Erroneous error message when using arrays in double constructor Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: claus dot tondering at teknologisk dot dk CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17082
next reply other threads:[~2004-08-18 12:59 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-18 12:59 claus dot tondering at teknologisk dot dk [this message] 2004-08-18 13:03 ` [Bug c++/17082] " claus dot tondering at teknologisk dot dk 2004-08-18 13:10 ` bangerth at dealii dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040818125920.17082.claus.tondering@teknologisk.dk \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).