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

List:       kdevelop-bugs
Subject:    [Bug 276663] New: "Cannot redeclare const" warning ignores program
From:       jay <jay () jay ! cz>
Date:       2011-06-28 8:26:39
Message-ID: bug-276663-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: "Cannot redeclare const" warning ignores program flow.
           Product: kdevelop
           Version: git master
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: PHP
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: jay@jay.cz


Version:           git master (using KDE 4.6.2) 
OS:                Linux

parser is unable to see program flow in defining constants.

Reproducible: Always

Steps to Reproduce:
<?php
if( true ){
  define('FOO', true);
}else{
  define('FOO', false);
}
?>

Actual Results:  
Cannot redeclare const bool FOO, already declared .....

Expected Results:  
no warning.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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