Bug 338903 - Semantic analysis not parse correctly header files
Summary: Semantic analysis not parse correctly header files
Status: RESOLVED UPSTREAM
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.6.90
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 10:49 UTC by Anthony Fieroni
Modified: 2019-06-04 19:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!