This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/1962: deducing array types
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1962: deducing array types
- From: nathan at codesourcery dot com
- Date: 13 Feb 2001 16:12:16 -0000
- Reply-To: nathan at codesourcery dot com
>Number: 1962
>Category: c++
>Synopsis: deducing array types
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Feb 13 08:16:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Nathan
>Release: cvs 20010213
>Organization:
>Environment:
>Description:
The attached produces,
nathan@uha:56>./g++ -B ./ current/1960x.C
current/1960x.C: In function `int main()':
current/1960x.C:15: no matching function for call to `Baz(const int[1])'
rather than deducing T to be `int const'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="1960x.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="1960x.C"
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0ZW1wbGF0ZSA8dHlwZW5hbWUgVCwgdW5zaWduZWQgST4gaW50
IEJheiAoVCAoJm9iailbSV0pCnsKICBwcmludGYgKCIlc1xuIiwgX19QUkVUVFlfRlVOQ1RJT05f
Xyk7CiAgcmV0dXJuIDE7Cn0KCgppbnQgbWFpbiAoKQp7CiAgc3RhdGljIGludCBjb25zdCBjYVsx
XSA9IHsxfTsKICBzdGF0aWMgaW50IGFbMV0gPSB7MX07CiAgCiAgQmF6IChjYSk7CiAgQmF6IChh
KTsKICAKICByZXR1cm4gMDsKfQo=