public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/13736] [3.4/3.5 Regression] Parser confused on compound casts
Date: Mon, 19 Jan 2004 12:19:00 -0000	[thread overview]
Message-ID: <20040119121928.11535.qmail@sources.redhat.com> (raw)
In-Reply-To: <20040119091055.13736.jan@etpmod.phys.tue.nl>


------- Additional Comments From giovannibajo at libero dot it  2004-01-19 12:19 -------
Confirmed, a regression on 3.4/3.5 probably caused by the new parser. A self-
contained testcase is obviously:

-------------------------------------------------
struct string
{
  string() {};
  string(const string& ) {};
  string(const char * ) {};
};

int main() 
{ 
  string s1(string( (string     )("")));   // OK 
  string s2(string( (const char*)("")));   // Does not compile 
  typedef const char* charp; 
  string s3(string( (charp)("")));         // Workaround: intermediate typedef 
  string s4((string( (const char*)("")))); // Workaround: extra parenthesis 

  return 0; 
} 
-------------------------------------------------


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-19 12:19:25
               date|                            |
            Summary|[gcc-3.4 parser regression] |[3.4/3.5 Regression] Parser
                   |Some compound casts rejected|confused on compound casts
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13736


  reply	other threads:[~2004-01-19 12:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-19  9:11 [Bug c++/13736] New: [gcc-3.4 parser regression] Some compound casts rejected jan at etpmod dot phys dot tue dot nl
2004-01-19 12:19 ` giovannibajo at libero dot it [this message]
2004-01-19 12:28 ` [Bug c++/13736] [3.4/3.5 Regression] Parser confused on compound casts pinskia at gcc dot gnu dot org
2004-01-25  3:27 ` pinskia at gcc dot gnu dot org
2004-01-29  1:29 ` cvs-commit at gcc dot gnu dot org
2004-01-29  1:34 ` cvs-commit at gcc dot gnu dot org
2004-01-29  1:35 ` mmitchel at gcc dot gnu 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=20040119121928.11535.qmail@sources.redhat.com \
    --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: link
Be 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).