public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/25663]  New: [4.1/4.2 Regression] Parses operator() call as declarator
Date: Wed, 04 Jan 2006 09:14:00 -0000	[thread overview]
Message-ID: <bug-25663-10053@http.gcc.gnu.org/bugzilla/> (raw)

The following is rejected now as of a change between r109062 and r109079
with "error: invalid declarator" on the 2nd last line.

template <class T>
struct ScalarCode
{
 ScalarCode(const T&);
 template <class A, class B>
 void operator()(const A&, const B&);
};
template <int Dim>
struct CflFunctor
{
 CflFunctor(bool omrot, bool vis_f);
};
struct Bar {};
void foo(bool omrot, bool vis_f, const Bar& x, const Bar& y)
{
 ScalarCode<CflFunctor<3> >(CflFunctor<3>(omrot, vis_f))(x, y);
}


-- 
           Summary: [4.1/4.2 Regression] Parses operator() call as
                    declarator
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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



             reply	other threads:[~2006-01-04  9:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-04  9:14 rguenth at gcc dot gnu dot org [this message]
2006-01-04 12:07 ` [Bug c++/25663] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
2006-01-04 12:10 ` [Bug c++/25663] [4.0/4.1/4.2 Regression] Trouble parsing nested templated constructor calls rguenth at gcc dot gnu dot org
2006-01-04 12:11 ` rguenth at gcc dot gnu dot org
2006-01-04 12:21 ` reichelt at gcc dot gnu dot org
2006-01-13 21:43 ` rguenth at gcc dot gnu dot org
2006-01-14  4:56 ` mark at codesourcery dot com
2006-01-14  5:58 ` pinskia at gcc dot gnu dot org
2006-01-14 10:55 ` rguenth at gcc dot gnu dot org
2006-01-14 12:22 ` steven at gcc dot gnu dot org
2006-01-14 18:44 ` mark at codesourcery dot com
2006-01-14 18:49 ` mark at codesourcery dot com
2006-01-15  0:56 ` mmitchel at gcc dot gnu dot org
2006-01-15  0:57 ` mmitchel at gcc dot gnu dot org
2006-01-15  0:57 ` mmitchel at gcc dot gnu dot org
2006-01-15  0:59 ` 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=bug-25663-10053@http.gcc.gnu.org/bugzilla/ \
    --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).