public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hstong at ca dot ibm.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66659] New: Accepts invalid when undeduced context encountered deducing from a trailing parameter pack Date: Wed, 24 Jun 2015 22:38:00 -0000 [thread overview] Message-ID: <bug-66659-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66659 Bug ID: 66659 Summary: Accepts invalid when undeduced context encountered deducing from a trailing parameter pack Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- In the call to "f" from "h" below, the deduction for T@0 should find both "fptype" and "Func" and fail. ### SOURCE (<stdin>): template <typename ...T> struct A; void g(); void g(bool); typedef void (*fptype)(); struct Func { operator fptype(); } func; template<typename ...T> void f(A<T ...> *ap, T ...b); void h(A<fptype, fptype> *ap) { f(ap, func, g); } ### COMPILER INVOCATION: g++ -std=c++11 -c -x c++ - ### ACTUAL OUTPUT: (Clean compile). ### EXPECTED OUTPUT: (Error message). ### COMPILER VERSION INFO: Using built-in specs. COLLECT_GCC=/usr/local/gcc-head/bin/g++ COLLECT_LTO_WRAPPER=/usr/local/gcc-head/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/heads/gcc/gcc-source/configure --prefix=/usr/local/gcc-head --enable-languages=c,c++ --enable-lto --disable-multilib --without-ppl --without-cloog-ppl --enable-checking=release --disable-nls Thread model: posix gcc version 6.0.0 20150623 (experimental) (GCC)
next reply other threads:[~2015-06-24 22:38 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-24 22:38 hstong at ca dot ibm.com [this message] 2021-08-11 22:41 ` [Bug c++/66659] " pinskia 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-66659-4@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: 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).