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

List:       kde-bugs-dist
Subject:    [kdevelop] [Bug 337971] New: Semantic analysis incorrectly matches ctor
From:       Mikael Öhman <micketeer () gmail ! com>
Date:       2014-08-02 0:19:23
Message-ID: bug-337971-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 337971
           Summary: Semantic analysis incorrectly matches ctor
           Product: kdevelop
           Version: git master
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: Language Support: CPP
          Assignee: kdevelop-bugs-null@kde.org
          Reporter: micketeer@gmail.com

Created attachment 88082
  --> https://bugs.kde.org/attachment.cgi?id=88082&action=edit
Minimal example showcasing bug in Kdevelops cpp plugin

When calling a ctor like  "MyArray x{123};" or "MyArray{123}", the
initializer_list ctor takes precedence if it is available in the class.

In the attached minimal example, KDevelops semantic analysis incorrectly thinks
that I'm trying to call the deleted function when i write "MyArray{1}", and
gives the error:
Problem in Semantic analysis:
Use of deleted function: MyArray

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

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