Bug 338903

Summary: Semantic analysis not parse correctly header files
Product: [Applications] kdevelop Reporter: Anthony Fieroni <bvbfan>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.6.90   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Anthony Fieroni 2014-09-08 10:49:35 UTC
// main.cpp
#include <iostream> // <- note this include
#include "test1.h"

int main(int argc, char **argv) {
    std::cout << "Hello, world!" << std::endl;
    return 0;
}

// test1.h
// it's perfectly valid, 'cause i include iostream in main.cpp
// but semantic analysis don't understaind
struct test1 {
	void test2() { std::cout << __PRETTY_FUNCTION__ << std::endl; }
};

Reproducible: Always

Steps to Reproduce:
1. Make cpp file with 2 or more include derectives
2. in second include file use some difinitions from first, but not include it again
3. Semantic analysis fails to understaind that

Actual Results:  
Semantic analysis fails

Expected Results:  
Correct parse of includes order
Comment 1 Andrew Crouthamel 2018-11-12 02:57:44 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-21 04:38:43 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!