public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "markus at trippelsdorf dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54538] [4.8 Regression] Getting assembler messages when compiling
Date: Mon, 10 Sep 2012 14:13:00 -0000	[thread overview]
Message-ID: <bug-54538-4-94LBjgrwFz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54538-4@http.gcc.gnu.org/bugzilla/>

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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-10 14:13:29 UTC ---
Both icpc and clang++ reject the testcase:

clang:
pr54538.ii:283:13: error: no matching function for call to 'range'
  auto r9 = range (v9);
            ^~~~~
pr54538.ii:277:66: note: candidate template ignored: substitution failure [with
Rn = std::vector<int, std::allocator<int> > &]: non-type template
      argument is not a constant expression
  template <class Rn> eIF <is_range <Rn> (), chain_range <Rn &&>>range (Rn &&
rn)
                           ~~~~~~~~                              ^
pr54538.ii:284:14: error: no matching function for call to 'range'
  auto rr9 = range (mk_v9 ());
             ^~~~~
pr54538.ii:277:66: note: candidate template ignored: substitution failure [with
Rn = std::vector<int, std::allocator<int> >]: non-type template
      argument is not a constant expression
  template <class Rn> eIF <is_range <Rn> (), chain_range <Rn &&>>range (Rn &&
rn)

icpc:
...
pr54538.ii(283): error: no instance of function template "std::range" matches
the argument list
            argument types are: (std::vector<int, std::allocator<int>>)
    auto r9 = range (v9);
              ^

pr54538.ii(284): error: no instance of function template "std::range" matches
the argument list
            argument types are: (std::vector<int, std::allocator<int>>)
    auto rr9 = range (mk_v9 ());


  parent reply	other threads:[~2012-09-10 14:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09 19:07 [Bug c++/54538] New: " leonid at volnitsky dot com
2012-09-10  8:29 ` [Bug c++/54538] [4.8 Regression] " jakub at gcc dot gnu.org
2012-09-10  8:32 ` jakub at gcc dot gnu.org
2012-09-10  8:38 ` jakub at gcc dot gnu.org
2012-09-10  9:07 ` leonid at volnitsky dot com
2012-09-10 14:13 ` markus at trippelsdorf dot de [this message]
2012-09-10 14:39 ` leonid at volnitsky dot com
2012-09-10 14:44 ` leonid at volnitsky dot com
2012-09-10 14:52 ` markus at trippelsdorf dot de
2012-09-10 17:47 ` jason at gcc dot gnu.org
2012-09-10 23:51 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` jason at gcc dot gnu.org
2012-09-10 23:52 ` 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-54538-4-94LBjgrwFz@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).