[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 306183] New: 'auto' doesn't support constructor initialization syntax
From:       Nicolás Alvarez <nicolas.alvarez () gmail ! com>
Date:       2012-09-03 3:58:26
Message-ID: bug-306183-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=306183

            Bug ID: 306183
          Severity: normal
           Version: 4.3.60
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: 'auto' doesn't support constructor initialization
                    syntax
    Classification: Unclassified
                OS: Linux
          Reporter: nicolas.alvarez@gmail.com
          Hardware: Compiled Sources
            Status: NEW
         Component: Language Support: CPP
           Product: kdevelop

The 'auto' keyword doesn't infer types when the variable is initialized using
constructor syntax instead of assignment. For example:

float f=0;
auto a=f; // correctly typed
auto b(f); // type not inferred, falls back to 'int' default

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic