bugKimwitu++ - Bugs: bug #2328, kc prohibits definition of...

 
 

bug #2328: kc prohibits definition of functions with operator names

Submitted by:  Martin v. Loewis <loewis>
Submitted on:  Mon 20 Jan 2003 10:13:22 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Confirmed
Assigned to: Michael Piefel <piefel>Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 20 Jan 2003 10:13:31 PM UTC, comment #3:

Fri, 05 Jul 2002 09:25:05 GMT
kc does not need to check the arguments; that will be done in C++.

Martin v. Loewis <loewis>
Project Administrator
Mon 20 Jan 2003 10:13:28 PM UTC, comment #2:

Fri, 05 Jul 2002 09:19:14 GMT
If yes: Do you want a check for the arguments, or should that be left to the cppc?

Michael Piefel <piefel>
Project AdministratorIn charge of this item.
Mon 20 Jan 2003 10:13:26 PM UTC, comment #1:

piefel Fri, 05 Jul 2002 09:18:05 GMT assigned_to 100

Anonymous
Mon 20 Jan 2003 10:13:22 PM UTC, original submission:

Original-Id: 212
Date: Fri, 05 Jul 2002 09:13:37 GMT
kc++ rejects

foo: Foo(int);

foo
Foo(char *s){
return Foo(atoi(s));
}

with the message

error at a.k:4: illegal redefinition of operator as function Foo (introduced at a.k:1)

This is undesirable; in C++, it is reasonable to overload functions.

Martin v. Loewis <loewis>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by piefel (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Jan 2007 02:36:39 PM UTCpiefelStatusNone=>Confirmed
    Mon 20 Jan 2003 10:13:33 PM UTCpiefelAssigned toNone=>NA

    Back to the top


    Powered by Savane 3.1-cleanup1