public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12643] New: Can't infer type of pointer-to-member template argument
@ 2003-10-16 17:20 braden at endoframe dot com
  2003-10-16 17:23 ` [Bug c++/12643] " braden at endoframe dot com
  2003-10-16 18:56 ` bangerth at dealii dot org
  0 siblings, 2 replies; 3+ messages in thread
From: braden at endoframe dot com @ 2003-10-16 17:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Can't infer type of pointer-to-member template argument
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: braden at endoframe dot com
                CC: gcc-bugs at gcc dot gnu dot org

In some cases, it seems gcc can't infer the type of a pointer-to-member template
argument.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/12643] Can't infer type of pointer-to-member template argument
  2003-10-16 17:20 [Bug c++/12643] New: Can't infer type of pointer-to-member template argument braden at endoframe dot com
@ 2003-10-16 17:23 ` braden at endoframe dot com
  2003-10-16 18:56 ` bangerth at dealii dot org
  1 sibling, 0 replies; 3+ messages in thread
From: braden at endoframe dot com @ 2003-10-16 17:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From braden at endoframe dot com  2003-10-16 17:23 -------
Created an attachment (id=4944)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4944&action=view)
Test case

Attempting to compile this yields this error message:

$ g++ -o infer_template_arg_test infer_template_arg_test.cc
infer_template_arg_test.cc: In function `int main()':
infer_template_arg_test.cc:14: error: no matching function for call to `f(
   main()::int_map&, <unknown type>, std::_Rb_tree_iterator<std::pair<const
   int, int>, std::pair<const int, int>&, std::pair<const int, int>*>)'

If the template arguments are explicitly given when invoking the function, this
compiles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/12643] Can't infer type of pointer-to-member template argument
  2003-10-16 17:20 [Bug c++/12643] New: Can't infer type of pointer-to-member template argument braden at endoframe dot com
  2003-10-16 17:23 ` [Bug c++/12643] " braden at endoframe dot com
@ 2003-10-16 18:56 ` bangerth at dealii dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2003-10-16 18:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From bangerth at dealii dot org  2003-10-16 18:55 -------
std::map has more than one "erase" member function, so taking the address
gives you a set of possible candidates. They can only be matched to a
template type if you explicitly specify the type.

W.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-16 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16 17:20 [Bug c++/12643] New: Can't infer type of pointer-to-member template argument braden at endoframe dot com
2003-10-16 17:23 ` [Bug c++/12643] " braden at endoframe dot com
2003-10-16 18:56 ` bangerth at dealii dot org

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).