This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1962: deducing array types



>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=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]