<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>336197</bug_id>
          
          <creation_ts>2014-06-13 23:26:38 +0000</creation_ts>
          <short_desc>parser does not understand &apos;auto*&apos;</short_desc>
          <delta_ts>2014-06-23 16:36:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>Language Support: CPP (old)</component>
          <version>4.6.0</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Matthew Woehlke">mwoehlke.floss</reporter>
          <assigned_to>kdevelop-bugs-null</assigned_to>
          
          
          <cf_commitlink>http://commits.kde.org/kdevelop/881436b6620a9948f53be6590919791ac18195af</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1455082</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2014-06-13 23:26:38 +0000</bug_when>
    <thetext>Consider the following bit of code:
  auto* foo = new QWidget();

This is perfectly valid code, with &apos;foo&apos; having the type &apos;QWdiget*&apos;. Alas, KDevelop is very confused and thinks the type of &apos;foo&apos; is &apos;int*&apos;. If the &apos;*&apos; in the declaration is omitted (also legal, and does not change the type of &apos;foo&apos;), KDevelop correctly deduces the type.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1456826</commentid>
    <comment_count>1</comment_count>
    <who name="Milian Wolff">mail</who>
    <bug_when>2014-06-20 22:22:47 +0000</bug_when>
    <thetext>Git commit 881436b6620a9948f53be6590919791ac18195af by Milian Wolff.
Committed on 20/06/2014 at 22:21.
Pushed by mwolff into branch &apos;master&apos;.

C++11: properly support &quot;auto* v = ...&quot; syntax.

M  +22   -1    languages/cpp/cppduchain/tests/test_duchain_cpp2011.cpp
M  +3    -2    languages/cpp/cppduchain/typebuilder.cpp

http://commits.kde.org/kdevelop/881436b6620a9948f53be6590919791ac18195af</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1457277</commentid>
    <comment_count>2</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2014-06-23 16:36:55 +0000</bug_when>
    <thetext>Awesome; thanks Milian!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>