public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60361] [4.7/4.8/4.9 Regression] unexpected 'use of parameter outside function body' error
Date: Mon, 03 Mar 2014 09:49:00 -0000	[thread overview]
Message-ID: <bug-60361-4-qfgeDBwtgN@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60361-4@http.gcc.gnu.org/bugzilla/>

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-03
      Known to work|                            |4.3.5
            Summary|unexpected 'use of          |[4.7/4.8/4.9 Regression]
                   |parameter outside function  |unexpected 'use of
                   |body' error                 |parameter outside function
                   |                            |body' error
     Ever confirmed|0                           |1
      Known to fail|                            |4.6.2, 4.7.4, 4.8.2, 4.9.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
4.4 and 4.5 say:

t.cc:18:34: error: 'A' cannot appear in a constant-expression
t.cc:18:36: error: no matching function for call to 'Helper::Helper(int,
<unresolved overloaded function type>)'
t.cc:3:3: note: candidates are: Helper::Helper(int, void (*)())
t.cc:2:1: note:                 Helper::Helper(const Helper&)

and 4.6 onwards give the "use of parameter 'A' outside function body" error, so
if the code is valid this is a regression.


  reply	other threads:[~2014-03-03  9:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-27 22:53 [Bug c++/60361] New: " rogero at howzatt dot demon.co.uk
2014-03-03  9:49 ` redi at gcc dot gnu.org [this message]
2014-03-03 20:42 ` [Bug c++/60361] [4.7/4.8/4.9 Regression] " jason at gcc dot gnu.org
2014-03-05 17:54 ` jason at gcc dot gnu.org
2014-03-05 17:56 ` [Bug c++/60361] [4.7/4.8 " jason at gcc dot gnu.org
2014-06-12 13:49 ` rguenth at gcc dot gnu.org
2014-08-01 18:34 ` [Bug c++/60361] [4.8 " jason at gcc dot gnu.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-60361-4-qfgeDBwtgN@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).